GLAMERDOC++
Gravitational Lensing Code Library
|
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. | |
QBranchNB * | operator* () |
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 () |
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.