GLAMERDOC++
Gravitational Lensing Code Library
Public Member Functions | Public Attributes | List of all members
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:
Collaboration graph
[legend]

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
 
QBranchNB * child0
 
QBranchNB * child1
 
QBranchNB * child2
 
QBranchNB * child3
 
QBranchNB * prev
 father of branch
 
QBranchNB * brother
 
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: