Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
shamtree::LeafCellIteratorAccessed Struct Reference

Public Member Functions

template<class Functor_iter >
void for_each_in_leaf_cell (const u32 &cell_id, Functor_iter &&func_it) const
 Iterate over all particles in a given cell.
 

Public Attributes

const u32sort_index_map
 Pointer to the sort index map.
 
const u32reduc_index_map
 Pointer to the reduction index map.
 

Detailed Description

Definition at line 26 of file LeafCellIterator.hpp.

Member Function Documentation

◆ for_each_in_leaf_cell()

template<class Functor_iter >
void shamtree::LeafCellIteratorAccessed::for_each_in_leaf_cell ( const u32 cell_id,
Functor_iter &&  func_it 
) const
inline

Iterate over all particles in a given cell.

Parameters
[in]cell_idID of the cell to iterate over.
[in]func_itfunction to call for each particle in the cell.

This function takes a cell ID and a functor as argument. It will then iterate over all particles in the given cell and call the functor with each particle's index as argument.

Definition at line 41 of file LeafCellIterator.hpp.

Member Data Documentation

◆ reduc_index_map

const u32* shamtree::LeafCellIteratorAccessed::reduc_index_map

Pointer to the reduction index map.

Definition at line 28 of file LeafCellIterator.hpp.

◆ sort_index_map

const u32* shamtree::LeafCellIteratorAccessed::sort_index_map

Pointer to the sort index map.

Definition at line 27 of file LeafCellIterator.hpp.


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