Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamrock::sfc::MortonCodes< u64, 3 > Class Reference

Public Types

using int_vec_repr_base = u32
using int_vec_repr = u32_3

Static Public Member Functions

static u64 icoord_to_morton (u64 x, u64 y, u64 z)
static bool is_morton_bounding_box (int_vec_repr min, int_vec_repr max) noexcept
template<class flt>
static u64 coord_to_morton (flt x, flt y, flt z)
static int_vec_repr morton_to_icoord (u64 morton)
static int_vec_repr get_offset (u32 clz_)

Static Public Attributes

static constexpr int_vec_repr_base dimension = 3
static constexpr int_vec_repr_base max_val = 2097152 - 1
static constexpr int_vec_repr_base val_count = 2097152
static constexpr int_vec_repr_base significant_bits_p_coord = 21
static constexpr int_vec_repr_base significant_bits = dimension * significant_bits_p_coord
static constexpr u64 err_code = 18446744073709551615UL

Detailed Description

Definition at line 115 of file morton.hpp.

Member Typedef Documentation

◆ int_vec_repr

using shamrock::sfc::MortonCodes< u64, 3 >::int_vec_repr = u32_3

Definition at line 118 of file morton.hpp.

◆ int_vec_repr_base

using shamrock::sfc::MortonCodes< u64, 3 >::int_vec_repr_base = u32

Definition at line 117 of file morton.hpp.

Member Function Documentation

◆ coord_to_morton()

template<class flt>
u64 shamrock::sfc::MortonCodes< u64, 3 >::coord_to_morton ( flt x,
flt y,
flt z )
inlinestatic

Definition at line 140 of file morton.hpp.

◆ get_offset()

int_vec_repr shamrock::sfc::MortonCodes< u64, 3 >::get_offset ( u32 clz_)
inlinestatic

Definition at line 173 of file morton.hpp.

◆ icoord_to_morton()

u64 shamrock::sfc::MortonCodes< u64, 3 >::icoord_to_morton ( u64 x,
u64 y,
u64 z )
inlinestatic

Definition at line 127 of file morton.hpp.

◆ is_morton_bounding_box()

bool shamrock::sfc::MortonCodes< u64, 3 >::is_morton_bounding_box ( int_vec_repr min,
int_vec_repr max )
inlinestaticnoexcept

Definition at line 134 of file morton.hpp.

◆ morton_to_icoord()

int_vec_repr shamrock::sfc::MortonCodes< u64, 3 >::morton_to_icoord ( u64 morton)
inlinestatic

Definition at line 163 of file morton.hpp.

Member Data Documentation

◆ dimension

int_vec_repr_base shamrock::sfc::MortonCodes< u64, 3 >::dimension = 3
staticconstexpr

Definition at line 119 of file morton.hpp.

◆ err_code

u64 shamrock::sfc::MortonCodes< u64, 3 >::err_code = 18446744073709551615UL
staticconstexpr

Definition at line 125 of file morton.hpp.

◆ max_val

int_vec_repr_base shamrock::sfc::MortonCodes< u64, 3 >::max_val = 2097152 - 1
staticconstexpr

Definition at line 120 of file morton.hpp.

◆ significant_bits

int_vec_repr_base shamrock::sfc::MortonCodes< u64, 3 >::significant_bits = dimension * significant_bits_p_coord
staticconstexpr

Definition at line 123 of file morton.hpp.

◆ significant_bits_p_coord

int_vec_repr_base shamrock::sfc::MortonCodes< u64, 3 >::significant_bits_p_coord = 21
staticconstexpr

Definition at line 122 of file morton.hpp.

◆ val_count

int_vec_repr_base shamrock::sfc::MortonCodes< u64, 3 >::val_count = 2097152
staticconstexpr

Definition at line 121 of file morton.hpp.


The documentation for this class was generated from the following file: