Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
shamrock.tree::TreeStructure< u_morton > Class Template Reference
+ Collaboration diagram for shamrock.tree::TreeStructure< u_morton >:

Public Member Functions

bool is_built ()
 
void build (sycl::queue &queue, u32 _internal_cell_count, sycl::buffer< u_morton > &morton_buf)
 
void build_one_cell_mode ()
 
u64 memsize () const
 
bool operator== (const TreeStructure &rhs) const
 
 TreeStructure (const TreeStructure &other)
 
TreeStructureoperator= (TreeStructure &&other) noexcept
 
 TreeStructure (u32 internal_cell_count, bool one_cell_mode, std::unique_ptr< sycl::buffer< u32 > > &&buf_lchild_id, std::unique_ptr< sycl::buffer< u32 > > &&buf_rchild_id, std::unique_ptr< sycl::buffer< u8 > > &&buf_lchild_flag, std::unique_ptr< sycl::buffer< u8 > > &&buf_rchild_flag, std::unique_ptr< sycl::buffer< u32 > > &&buf_endrange)
 
void serialize (shamalgs::SerializeHelper &serializer)
 
shamalgs::SerializeSize serialize_byte_size ()
 

Static Public Member Functions

static TreeStructure deserialize (shamalgs::SerializeHelper &serializer)
 

Public Attributes

u32 internal_cell_count
 
bool one_cell_mode = false
 
std::unique_ptr< sycl::buffer< u32 > > buf_lchild_id
 
std::unique_ptr< sycl::buffer< u32 > > buf_rchild_id
 
std::unique_ptr< sycl::buffer< u8 > > buf_lchild_flag
 
std::unique_ptr< sycl::buffer< u8 > > buf_rchild_flag
 
std::unique_ptr< sycl::buffer< u32 > > buf_endrange
 

Detailed Description

template<class u_morton>
class shamrock.tree::TreeStructure< u_morton >

Definition at line 23 of file TreeStructure.hpp.

Constructor & Destructor Documentation

◆ TreeStructure()

template<class u_morton >
shamrock.tree::TreeStructure< u_morton >::TreeStructure ( u32  internal_cell_count,
bool  one_cell_mode,
std::unique_ptr< sycl::buffer< u32 > > &&  buf_lchild_id,
std::unique_ptr< sycl::buffer< u32 > > &&  buf_rchild_id,
std::unique_ptr< sycl::buffer< u8 > > &&  buf_lchild_flag,
std::unique_ptr< sycl::buffer< u8 > > &&  buf_rchild_flag,
std::unique_ptr< sycl::buffer< u32 > > &&  buf_endrange 
)
inline

Definition at line 83 of file TreeStructure.hpp.

Member Function Documentation

◆ build()

template<class u_morton >
void shamrock.tree::TreeStructure< u_morton >::build ( sycl::queue &  queue,
u32  _internal_cell_count,
sycl::buffer< u_morton > &  morton_buf 
)

Definition at line 25 of file TreeStructure.cpp.

◆ build_one_cell_mode()

template<class u_morton >
void shamrock.tree::TreeStructure< u_morton >::build_one_cell_mode ( )

Definition at line 55 of file TreeStructure.cpp.

◆ deserialize()

template<class u_morton >
static TreeStructure shamrock.tree::TreeStructure< u_morton >::deserialize ( shamalgs::SerializeHelper serializer)
inlinestatic

Definition at line 119 of file TreeStructure.hpp.

◆ is_built()

template<class u_morton >
bool shamrock.tree::TreeStructure< u_morton >::is_built ( )
inline

Definition at line 35 of file TreeStructure.hpp.

◆ memsize()

template<class u_morton >
u64 shamrock.tree::TreeStructure< u_morton >::memsize ( ) const
inline

Definition at line 45 of file TreeStructure.hpp.

◆ operator=()

template<class u_morton >
TreeStructure & shamrock.tree::TreeStructure< u_morton >::operator= ( TreeStructure< u_morton > &&  other)
inlinenoexcept

Definition at line 71 of file TreeStructure.hpp.

◆ operator==()

template<class u_morton >
bool shamrock.tree::TreeStructure< u_morton >::operator== ( const TreeStructure< u_morton > &  rhs) const

Definition at line 106 of file TreeStructure.cpp.

◆ serialize()

template<class u_morton >
void shamrock.tree::TreeStructure< u_morton >::serialize ( shamalgs::SerializeHelper serializer)
inline

Definition at line 96 of file TreeStructure.hpp.

◆ serialize_byte_size()

template<class u_morton >
shamalgs::SerializeSize shamrock.tree::TreeStructure< u_morton >::serialize_byte_size ( )
inline

Definition at line 107 of file TreeStructure.hpp.

Member Data Documentation

◆ buf_endrange

template<class u_morton >
std::unique_ptr<sycl::buffer<u32> > shamrock.tree::TreeStructure< u_morton >::buf_endrange

Definition at line 33 of file TreeStructure.hpp.

◆ buf_lchild_flag

template<class u_morton >
std::unique_ptr<sycl::buffer<u8> > shamrock.tree::TreeStructure< u_morton >::buf_lchild_flag

Definition at line 31 of file TreeStructure.hpp.

◆ buf_lchild_id

template<class u_morton >
std::unique_ptr<sycl::buffer<u32> > shamrock.tree::TreeStructure< u_morton >::buf_lchild_id

Definition at line 29 of file TreeStructure.hpp.

◆ buf_rchild_flag

template<class u_morton >
std::unique_ptr<sycl::buffer<u8> > shamrock.tree::TreeStructure< u_morton >::buf_rchild_flag

Definition at line 32 of file TreeStructure.hpp.

◆ buf_rchild_id

template<class u_morton >
std::unique_ptr<sycl::buffer<u32> > shamrock.tree::TreeStructure< u_morton >::buf_rchild_id

Definition at line 30 of file TreeStructure.hpp.

◆ internal_cell_count

template<class u_morton >
u32 shamrock.tree::TreeStructure< u_morton >::internal_cell_count

Definition at line 26 of file TreeStructure.hpp.

◆ one_cell_mode

template<class u_morton >
bool shamrock.tree::TreeStructure< u_morton >::one_cell_mode = false

Definition at line 27 of file TreeStructure.hpp.


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