![]() |
Shamrock 2025.10.0
Astrophysical Code
|
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 u32 * | sort_index_map |
| Pointer to the sort index map. | |
| const u32 * | reduc_index_map |
| Pointer to the reduction index map. | |
Definition at line 26 of file LeafCellIterator.hpp.
|
inline |
Iterate over all particles in a given cell.
| [in] | cell_id | ID of the cell to iterate over. |
| [in] | func_it | function 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.
| const u32* shamtree::LeafCellIteratorAccessed::reduc_index_map |
Pointer to the reduction index map.
Definition at line 28 of file LeafCellIterator.hpp.
| const u32* shamtree::LeafCellIteratorAccessed::sort_index_map |
Pointer to the sort index map.
Definition at line 27 of file LeafCellIterator.hpp.