GLAMERDOC++
Gravitational Lensing Code Library
|
QTreeNB: Tree structure used for force calculation with particles (i.e. stars, Nbody or halos). More...
#include <qTreeNB.h>
Public Member Functions | |
QTreeNB (PType *xp, IndexType *particles, IndexType nparticles, PosType boundary_p1[], PosType boundary_p2[]) | |
~QTreeNB () | |
Free treeNB. Does not free the particle positions, masses or sizes. | |
const bool | isEmpty () |
const bool | atTop () |
const bool | noChild () |
const bool | offEnd () |
const unsigned long | getNbranches () |
const bool | atLeaf (QBranchNB *branch) |
void | getCurrent (IndexType *particles, IndexType *nparticles) |
void | moveTop () |
void | moveUp () |
void | moveToChild (int child) |
bool | WalkStep (bool allowDescent) |
short | empty () |
void | attachChildrenToCurrent (QBranchNB *branch0, QBranchNB *branch1, QBranchNB *branch2, QBranchNB *branch3) |
Public Attributes | |
QBranchNB * | top |
QBranchNB * | current |
PType * | xxp |
Array of particle positions. | |
QTreeNB: Tree structure used for force calculation with particles (i.e. stars, Nbody or halos).
The tree also contains pointers to the list of positions, sizes and masses of the particles. Also flags for the number of dimensions the tree is defined in (2 or 3), and if multiple masses and sizes should be used.