GLAMERDOC++
Gravitational Lensing Code Library
Loading...
Searching...
No Matches
QTreeNB< PType > Struct Template Reference

QTreeNB: Tree structure used for force calculation with particles (i.e. stars, Nbody or halos). More...

#include <qTreeNB.h>

Collaboration diagram for QTreeNB< PType >:

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

QBranchNBtop
 
QBranchNBcurrent
 
PType * xxp
 Array of particle positions.
 

Detailed Description

template<typename PType = double*>
struct QTreeNB< PType >

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.


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