Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
shamrock::sfc::MortonCodes< u32, 3 > Class Reference

Public Types

using int_vec_repr_base = u16
 
using int_vec_repr = u16_3
 

Static Public Member Functions

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

Static Public Attributes

static constexpr int_vec_repr_base dimension = 3
 
static constexpr int_vec_repr_base max_val = 1024 - 1
 
static constexpr int_vec_repr_base val_count = 1024
 
static constexpr int_vec_repr_base significant_bits_p_coord = 10
 
static constexpr int_vec_repr_base significant_bits = dimension * significant_bits_p_coord
 
static constexpr u32 err_code = 4294967295U
 

Detailed Description

Definition at line 47 of file morton.hpp.

Member Typedef Documentation

◆ int_vec_repr

using shamrock::sfc::MortonCodes< u32, 3 >::int_vec_repr = u16_3

Definition at line 50 of file morton.hpp.

◆ int_vec_repr_base

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

Definition at line 49 of file morton.hpp.

Member Function Documentation

◆ coord_to_morton()

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

Definition at line 72 of file morton.hpp.

◆ get_offset()

static u16_3 shamrock::sfc::MortonCodes< u32, 3 >::get_offset ( u32  clz_)
inlinestatic

Definition at line 105 of file morton.hpp.

◆ icoord_to_morton()

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

Definition at line 59 of file morton.hpp.

◆ is_morton_bounding_box()

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

Definition at line 66 of file morton.hpp.

◆ morton_to_icoord()

static u16_3 shamrock::sfc::MortonCodes< u32, 3 >::morton_to_icoord ( u32  morton)
inlinestatic

Definition at line 95 of file morton.hpp.

Member Data Documentation

◆ dimension

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

Definition at line 51 of file morton.hpp.

◆ err_code

constexpr u32 shamrock::sfc::MortonCodes< u32, 3 >::err_code = 4294967295U
staticconstexpr

Definition at line 57 of file morton.hpp.

◆ max_val

constexpr int_vec_repr_base shamrock::sfc::MortonCodes< u32, 3 >::max_val = 1024 - 1
staticconstexpr

Definition at line 52 of file morton.hpp.

◆ significant_bits

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

Definition at line 55 of file morton.hpp.

◆ significant_bits_p_coord

constexpr int_vec_repr_base shamrock::sfc::MortonCodes< u32, 3 >::significant_bits_p_coord = 10
staticconstexpr

Definition at line 54 of file morton.hpp.

◆ val_count

constexpr int_vec_repr_base shamrock::sfc::MortonCodes< u32, 3 >::val_count = 1024
staticconstexpr

Definition at line 53 of file morton.hpp.


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