Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamrock::scheduler::PatchTreeNode Class Reference

Node information in the patchtree + held patch info. More...

#include <shamrock/include/shamrock/scheduler/PatchTreeNode.hpp>

Collaboration diagram for shamrock::scheduler::PatchTreeNode:

Public Types

using PatchCoord = patch::PatchCoord<3>

Public Member Functions

std::array< PatchTreeNode, split_count > get_split_nodes (u32 cur_id)
bool is_leaf ()
u64 get_child_nid (u32 id)
template<class vec>
SerialPatchNode< vec > convert (const shamrock::patch::PatchCoordTransform< vec > box_transform)
 Convert PatchTreeNode to SerialPatchNode using given coordinate transform.

Public Attributes

PatchCoord patch_coord
LinkedTreeNode tree_node
u64 linked_patchid
u64 load_value = u64_max

Static Public Attributes

static constexpr u32 split_count = patch::PatchCoord<3>::splts_count

Detailed Description

Node information in the patchtree + held patch info.

Definition at line 70 of file PatchTreeNode.hpp.

Member Typedef Documentation

◆ PatchCoord

using shamrock::scheduler::PatchTreeNode::PatchCoord = patch::PatchCoord<3>

Definition at line 73 of file PatchTreeNode.hpp.

Member Function Documentation

◆ convert()

template<class vec>
SerialPatchNode< vec > shamrock::scheduler::PatchTreeNode::convert ( const shamrock::patch::PatchCoordTransform< vec > box_transform)
inline

Convert PatchTreeNode to SerialPatchNode using given coordinate transform.

Template Parameters
vecThe vector type
Parameters
box_transformCoordinate transform from patch coordinate space to real one
Returns
SerialPatchNode<vec> Converted patch node

Definition at line 97 of file PatchTreeNode.hpp.

◆ get_child_nid()

u64 shamrock::scheduler::PatchTreeNode::get_child_nid ( u32 id)
inline

Definition at line 87 of file PatchTreeNode.hpp.

◆ get_split_nodes()

auto shamrock::scheduler::PatchTreeNode::get_split_nodes ( u32 cur_id)
inline

Definition at line 124 of file PatchTreeNode.hpp.

◆ is_leaf()

bool shamrock::scheduler::PatchTreeNode::is_leaf ( )
inline

Definition at line 85 of file PatchTreeNode.hpp.

Member Data Documentation

◆ linked_patchid

u64 shamrock::scheduler::PatchTreeNode::linked_patchid

Definition at line 78 of file PatchTreeNode.hpp.

◆ load_value

u64 shamrock::scheduler::PatchTreeNode::load_value = u64_max

Definition at line 81 of file PatchTreeNode.hpp.

◆ patch_coord

PatchCoord shamrock::scheduler::PatchTreeNode::patch_coord

Definition at line 75 of file PatchTreeNode.hpp.

◆ split_count

u32 shamrock::scheduler::PatchTreeNode::split_count = patch::PatchCoord<3>::splts_count
staticconstexpr

Definition at line 72 of file PatchTreeNode.hpp.

◆ tree_node

LinkedTreeNode shamrock::scheduler::PatchTreeNode::tree_node

Definition at line 77 of file PatchTreeNode.hpp.


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