![]() |
Shamrock 2025.10.0
Astrophysical Code
|
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< u32 > | map_morton_id_to_obj_id |
| Device buffer holding the map from sorted Morton code to object id. | |
Class representing a set of Morton codes with associated bounding box and position data.
| Tmorton | The type used for Morton codes |
| Tvec | The vector type representing positions |
| dim | The dimensionality, inferred from Tvec if not provided |
Definition at line 31 of file MortonCodeSortedSet.hpp.
|
inline |
Move constructor from each members.
Definition at line 49 of file MortonCodeSortedSet.hpp.
|
inlinestatic |
Definition at line 60 of file MortonCodeSortedSet.hpp.
| 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.
| u32 shamtree::MortonCodeSortedSet< Tmorton, Tvec, dim >::cnt_obj |
The count of objects represented in the set.
Definition at line 37 of file MortonCodeSortedSet.hpp.
| 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.
| 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.
| 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.