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

A iterator class fore TreeStruct that allows for movement through the tree without changing anything in the tree itself. More...

#include <qTreeNB.h>

Public Member Functions

 QBiterator (QTreeNB< PType > *tree)
 Sets the top or root to the top of "tree".
 
 QBiterator (QBranchNB *branch)
 Sets the root to the input branch so that this will be a subtree in branch is not the real root.
 
QBranchNBoperator* ()
 Returns a pointer to the current Branch.
 
void movetop ()
 
bool operator++ ()
 Same as up()
 
bool operator++ (int)
 Same as up()
 
bool up ()
 
bool down (short child)
 Move to child.
 
const bool atLeaf ()
 
bool TreeWalkStep (bool allowDescent)
 
size_t getNbranches ()
 

Detailed Description

template<typename PType>
class QBiterator< PType >

A iterator class fore TreeStruct that allows for movement through the tree without changing anything in the tree itself.

This class should be able to preform all of the constant movements within the tree without causing any change to the tree.


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