![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Iterator over cells of a BinaryTree. More...
#include <shamtree/include/shamtree/CellIterator.hpp>
Collaboration diagram for shamtree::CellIterator:Public Types | |
| using | acc = CellIteratorAccessed |
Public Member Functions | |
| acc | get_read_access (sham::EventList &deps) const |
| Get a read-only access to the buffers. | |
| void | complete_event_state (sycl::event e) const |
| Completes the event state for the associated buffers. | |
Public Attributes | |
| const sham::DeviceBuffer< u32 > & | buf_sort_index_map |
| Sort index map buffer. | |
| const sham::DeviceBuffer< u32 > & | buf_reduc_index_map |
| Reduction index map buffer. | |
| const sham::DeviceBuffer< u32 > & | buf_endrange |
| End range buffer. | |
| u32 | offset_leaf |
| number of internal cells & offset to retrieve the first leaf | |
Iterator over cells of a BinaryTree.
Definition at line 79 of file CellIterator.hpp.
Definition at line 85 of file CellIterator.hpp.
|
inline |
Completes the event state for the associated buffers.
| [in] | e | The SYCL event to register for the buffers. |
This function registers the provided SYCL event in the event state of both buf_sort_index_map and buf_reduc_index_map, indicating that the event has been completed for these buffers.
Definition at line 114 of file CellIterator.hpp.
Here is the call graph for this function:
|
inline |
Get a read-only access to the buffers.
| [in] | deps | Event list to register the access in. |
This function returns a struct containing const pointers to the buf_sort_index_map and buf_reduc_index_map buffers. The access is registered in the deps event list.
Definition at line 97 of file CellIterator.hpp.
Here is the call graph for this function:| const sham::DeviceBuffer<u32>& shamtree::CellIterator::buf_endrange |
End range buffer.
Definition at line 82 of file CellIterator.hpp.
| const sham::DeviceBuffer<u32>& shamtree::CellIterator::buf_reduc_index_map |
Reduction index map buffer.
Definition at line 81 of file CellIterator.hpp.
| const sham::DeviceBuffer<u32>& shamtree::CellIterator::buf_sort_index_map |
Sort index map buffer.
Definition at line 80 of file CellIterator.hpp.
| u32 shamtree::CellIterator::offset_leaf |
number of internal cells & offset to retrieve the first leaf
Definition at line 83 of file CellIterator.hpp.