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

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
 

Detailed Description

Iterator over cells of a BinaryTree.

Definition at line 79 of file CellIterator.hpp.

Member Typedef Documentation

◆ acc

Definition at line 85 of file CellIterator.hpp.

Member Function Documentation

◆ complete_event_state()

void shamtree::CellIterator::complete_event_state ( sycl::event  e) const
inline

Completes the event state for the associated buffers.

Parameters
[in]eThe 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:

◆ get_read_access()

acc shamtree::CellIterator::get_read_access ( sham::EventList deps) const
inline

Get a read-only access to the buffers.

Parameters
[in]depsEvent list to register the access in.
Returns
A structure containing const pointers to the buffers.

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:

Member Data Documentation

◆ buf_endrange

const sham::DeviceBuffer<u32>& shamtree::CellIterator::buf_endrange

End range buffer.

Definition at line 82 of file CellIterator.hpp.

◆ buf_reduc_index_map

const sham::DeviceBuffer<u32>& shamtree::CellIterator::buf_reduc_index_map

Reduction index map buffer.

Definition at line 81 of file CellIterator.hpp.

◆ buf_sort_index_map

const sham::DeviceBuffer<u32>& shamtree::CellIterator::buf_sort_index_map

Sort index map buffer.

Definition at line 80 of file CellIterator.hpp.

◆ offset_leaf

u32 shamtree::CellIterator::offset_leaf

number of internal cells & offset to retrieve the first leaf

Definition at line 83 of file CellIterator.hpp.


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