Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
MortonCodeSortedSet.hpp File Reference
Include dependency graph for MortonCodeSortedSet.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  shamtree::MortonCodeSortedSet< Tmorton, Tvec, dim >
 Class representing a set of Morton codes with associated bounding box and position data. More...

Functions

template<class Tmorton, class Tvec, u32 dim>
MortonCodeSortedSet< Tmorton, Tvec, dim > shamtree::sort_morton_set (const sham::DeviceScheduler_ptr &dev_sched, MortonCodeSet< Tmorton, Tvec, dim > &&morton_codes_set)
 Sorts a set of Morton codes and creates a new MortonCodeSortedSet object with the sorted codes and the associated map from sorted Morton code to object id.
template<class Tmorton, class Tvec, u32 dim>
MortonCodeSortedSet< Tmorton, Tvec, dim > shamtree::sort_morton_set (const sham::DeviceScheduler_ptr &dev_sched, MortonCodeSet< Tmorton, Tvec, dim > &&morton_codes_set, sham::DeviceBuffer< u32 > &&cached_map_morton_id_to_obj_id)
 Sorts a set of Morton codes and creates a new MortonCodeSortedSet object with the sorted codes and the associated map from sorted Morton code to object id.

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file MortonCodeSortedSet.hpp.

Function Documentation

◆ sort_morton_set() [1/2]

template<class Tmorton, class Tvec, u32 dim>
MortonCodeSortedSet< Tmorton, Tvec, dim > shamtree::sort_morton_set ( const sham::DeviceScheduler_ptr & dev_sched,
MortonCodeSet< Tmorton, Tvec, dim > && morton_codes_set )

Sorts a set of Morton codes and creates a new MortonCodeSortedSet object with the sorted codes and the associated map from sorted Morton code to object id.

Parameters
dev_schedThe SYCL device scheduler to use
morton_codes_setThe MortonCodeSet to be sorted
Returns
A new MortonCodeSortedSet object with the sorted codes and the associated map

Definition at line 52 of file MortonCodeSortedSet.cpp.

◆ sort_morton_set() [2/2]

template<class Tmorton, class Tvec, u32 dim>
MortonCodeSortedSet< Tmorton, Tvec, dim > shamtree::sort_morton_set ( const sham::DeviceScheduler_ptr & dev_sched,
MortonCodeSet< Tmorton, Tvec, dim > && morton_codes_set,
sham::DeviceBuffer< u32 > && cached_map_morton_id_to_obj_id )

Sorts a set of Morton codes and creates a new MortonCodeSortedSet object with the sorted codes and the associated map from sorted Morton code to object id.

Parameters
dev_schedThe SYCL device scheduler to use
morton_codes_setThe MortonCodeSet to be sorted
cached_map_morton_id_to_obj_idA pre-allocated device buffer to store the map from sorted Morton code to object id
Returns
A new MortonCodeSortedSet object with the sorted codes and the associated map

Definition at line 24 of file MortonCodeSortedSet.cpp.

Here is the call graph for this function: