Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
shamtree::MortonCodeSortedSet< 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/MortonCodeSortedSet.hpp>

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

Public Member Functions

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

Static Public Member Functions

static MortonCodeSortedSet make_empty (sham::DeviceScheduler_ptr dev_sched)
 

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 > sorted_morton_codes
 Device buffer holding the sorted Morton codes.
 
sham::DeviceBuffer< u32map_morton_id_to_obj_id
 Device buffer holding the map from sorted Morton code to object id.
 

Detailed Description

template<class Tmorton, class Tvec, u32 dim = shambase::VectorProperties<Tvec>::dimension>
class shamtree::MortonCodeSortedSet< 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 31 of file MortonCodeSortedSet.hpp.

Constructor & Destructor Documentation

◆ MortonCodeSortedSet()

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

Move constructor from each members.

Definition at line 49 of file MortonCodeSortedSet.hpp.

Member Function Documentation

◆ make_empty()

template<class Tmorton , class Tvec , u32 dim = shambase::VectorProperties<Tvec>::dimension>
static MortonCodeSortedSet shamtree::MortonCodeSortedSet< Tmorton, Tvec, dim >::make_empty ( sham::DeviceScheduler_ptr  dev_sched)
inlinestatic

Definition at line 60 of file MortonCodeSortedSet.hpp.

Member Data Documentation

◆ bounding_box

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

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

Definition at line 34 of file MortonCodeSortedSet.hpp.

◆ cnt_obj

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

The count of objects represented in the set.

Definition at line 37 of file MortonCodeSortedSet.hpp.

◆ map_morton_id_to_obj_id

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

Device buffer holding the map from sorted Morton code to object id.

Definition at line 46 of file MortonCodeSortedSet.hpp.

◆ morton_count

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

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

Definition at line 40 of file MortonCodeSortedSet.hpp.

◆ sorted_morton_codes

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

Device buffer holding the sorted Morton codes.

Definition at line 43 of file MortonCodeSortedSet.hpp.


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