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

Accessed version of CLBVHObjectIterator. More...

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

Public Member Functions

template<class Functor1 , class Functor2 >
void rtree_for (Functor1 &&traverse_condition_with_aabb, Functor2 &&on_found_object) const
 Traverses the tree and executes a function for each found object.
 

Public Attributes

LeafCellIterator::acc cell_iterator
 Cell iterator.
 
CLBVHTraverserAccessed< Tmorton, Tvec, dim > tree_traverser
 Tree traverser.
 

Static Public Attributes

static constexpr u32 tree_depth_max = shamrock::sfc::MortonCodes<Tmorton, 3>::significant_bits + 1
 maximum depth of the tree according to the morton codes
 

Detailed Description

template<class Tmorton, class Tvec, u32 dim>
struct shamtree::CLBVHObjectIteratorAccessed< Tmorton, Tvec, dim >

Accessed version of CLBVHObjectIterator.

Definition at line 142 of file CLBVHObjectIterator.hpp.

Member Function Documentation

◆ rtree_for()

template<class Tmorton , class Tvec , u32 dim>
template<class Functor1 , class Functor2 >
void shamtree::CLBVHObjectIteratorAccessed< Tmorton, Tvec, dim >::rtree_for ( Functor1 &&  traverse_condition_with_aabb,
Functor2 &&  on_found_object 
) const
inline

Traverses the tree and executes a function for each found object.

Parameters
[in]traverse_condition_with_aabbA function taking a node_id and its AABB, and returning a boolean indicating whether to traverse the node further.
[in]on_found_objectA function to be called for each object found in a leaf node that meets the traversal condition.

Definition at line 160 of file CLBVHObjectIterator.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ cell_iterator

template<class Tmorton , class Tvec , u32 dim>
LeafCellIterator::acc shamtree::CLBVHObjectIteratorAccessed< Tmorton, Tvec, dim >::cell_iterator

Cell iterator.

Definition at line 148 of file CLBVHObjectIterator.hpp.

◆ tree_depth_max

template<class Tmorton , class Tvec , u32 dim>
constexpr u32 shamtree::CLBVHObjectIteratorAccessed< Tmorton, Tvec, dim >::tree_depth_max = shamrock::sfc::MortonCodes<Tmorton, 3>::significant_bits + 1
staticconstexpr

maximum depth of the tree according to the morton codes

Definition at line 145 of file CLBVHObjectIterator.hpp.

◆ tree_traverser

template<class Tmorton , class Tvec , u32 dim>
CLBVHTraverserAccessed<Tmorton, Tvec, dim> shamtree::CLBVHObjectIteratorAccessed< Tmorton, Tvec, dim >::tree_traverser

Tree traverser.

Definition at line 149 of file CLBVHObjectIterator.hpp.


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