GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
TreeSimpleVec< T, D >::BranchV Struct Reference

Box representing a branch in a tree. It has four children. Used in TreeNBStruct which is used in TreeForce. More...

#include <simpleTreeVec.h>

Public Member Functions

 BranchV (int my_Ndim, IndexType *my_branch_index, IndexType my_nparticles, D my_boundary_p1[], D my_boundary_p2[], int my_level, unsigned long my_BranchVnumber)
 
 BranchV (BranchV &branch)
 

Public Attributes

int Ndim
 
IndexType * branch_index
 array of branch_index in BranchV
 
IndexType nparticles
 
int level
 level in tree
 
unsigned long number
 
D * boundary_p1 = nullptr
 bottom, left, back corner of box
 
D * boundary_p2 = nullptr
 top, right, front corner of box
 
std::vector< D > bank
 
std::shared_ptr< BranchVchild1_ptr
 
std::shared_ptr< BranchVchild2_ptr
 
std::shared_ptr< BranchVprev_ptr
 father of branch
 
std::shared_ptr< BranchVbrother_ptr
 

Detailed Description

template<typename T, typename D = PosType>
struct TreeSimpleVec< T, D >::BranchV

Box representing a branch in a tree. It has four children. Used in TreeNBStruct which is used in TreeForce.

Member Data Documentation

◆ brother_ptr

template<typename T , typename D = PosType>
std::shared_ptr<BranchV> TreeSimpleVec< T, D >::BranchV::brother_ptr

Either child2 of father is branch is child1 and child2 exists or the brother of the father. Used for iterative tree walk.


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