GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
QBranchNB Struct Reference

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

#include <qTreeNB.h>

Collaboration diagram for QBranchNB:

Public Member Functions

 QBranchNB (QBranchNB *parent)
 

Public Attributes

IndexType * particles
 array of particles in QBranchNB
 
std::unique_ptr< IndexType[]> big_particles
 
IndexType nparticles
 
IndexType Nbig_particles
 the number of particles that aren't in children
 
PosType maxrsph
 Size of largest particle in branch.
 
PosType center [2]
 center of mass
 
PosType mass
 
int level
 level in tree
 
unsigned long number
 
PosType boundary_p1 [2]
 bottom, left, back corner of box
 
PosType boundary_p2 [2]
 top, right, front corner of box
 
PosType boxsize2
 
QBranchNBchild0
 
QBranchNBchild1
 
QBranchNBchild2
 
QBranchNBchild3
 
QBranchNBprev
 father of branch
 
QBranchNBbrother
 
PosType quad [3]
 quadropole moment of branch
 
PosType rmax
 largest dimension of box
 
PosType r2crit_angle
 the critical distance below which a branch is opened in the
 
PosType rcrit_part
 

Detailed Description

Box representing a branch in a tree. It has four children. Used in QTreeNB which is used in TreeQuad.

Member Data Documentation

◆ brother

QBranchNB* QBranchNB::brother

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: