Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
shamtree::MortonCodeSet< Tmorton, Tvec, dim > Class Template Reference

Class representing a set of Morton codes with associated bounding box and position data. More...

#include <shamtree/include/shamtree/MortonCodeSet.hpp>

+ Collaboration diagram for shamtree::MortonCodeSet< Tmorton, Tvec, dim >:

Public Member Functions

 MortonCodeSet (shammath::AABB< Tvec > &&bounding_box, u32 &&cnt_obj, u32 &&morton_count, sham::DeviceBuffer< Tmorton > &&morton_codes)
 Move constructor from each members.
 

Public Attributes

shammath::AABB< Tvec > bounding_box
 The axis-aligned bounding box for the set of positions.
 
u32 cnt_obj
 The count of objects represented in the set.
 
u32 morton_count
 The count of Morton codes in the set (every code after cnt_obj is err_code)
 
sham::DeviceBuffer< Tmorton > morton_codes
 Device buffer holding the Morton codes.
 

Detailed Description

template<class Tmorton, class Tvec, u32 dim = shambase::VectorProperties<Tvec>::dimension>
class shamtree::MortonCodeSet< Tmorton, Tvec, dim >

Class representing a set of Morton codes with associated bounding box and position data.

Template Parameters
TmortonThe type used for Morton codes
TvecThe vector type representing positions
dimThe dimensionality, inferred from Tvec if not provided

Definition at line 35 of file MortonCodeSet.hpp.

Constructor & Destructor Documentation

◆ MortonCodeSet()

template<class Tmorton , class Tvec , u32 dim = shambase::VectorProperties<Tvec>::dimension>
shamtree::MortonCodeSet< Tmorton, Tvec, dim >::MortonCodeSet ( shammath::AABB< Tvec > &&  bounding_box,
u32 &&  cnt_obj,
u32 &&  morton_count,
sham::DeviceBuffer< Tmorton > &&  morton_codes 
)
inline

Move constructor from each members.

Definition at line 50 of file MortonCodeSet.hpp.

Member Data Documentation

◆ bounding_box

template<class Tmorton , class Tvec , u32 dim = shambase::VectorProperties<Tvec>::dimension>
shammath::AABB<Tvec> shamtree::MortonCodeSet< Tmorton, Tvec, dim >::bounding_box

The axis-aligned bounding box for the set of positions.

Definition at line 38 of file MortonCodeSet.hpp.

◆ cnt_obj

template<class Tmorton , class Tvec , u32 dim = shambase::VectorProperties<Tvec>::dimension>
u32 shamtree::MortonCodeSet< Tmorton, Tvec, dim >::cnt_obj

The count of objects represented in the set.

Definition at line 41 of file MortonCodeSet.hpp.

◆ morton_codes

template<class Tmorton , class Tvec , u32 dim = shambase::VectorProperties<Tvec>::dimension>
sham::DeviceBuffer<Tmorton> shamtree::MortonCodeSet< Tmorton, Tvec, dim >::morton_codes

Device buffer holding the Morton codes.

Definition at line 47 of file MortonCodeSet.hpp.

◆ morton_count

template<class Tmorton , class Tvec , u32 dim = shambase::VectorProperties<Tvec>::dimension>
u32 shamtree::MortonCodeSet< Tmorton, Tvec, dim >::morton_count

The count of Morton codes in the set (every code after cnt_obj is err_code)

Definition at line 44 of file MortonCodeSet.hpp.


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