|
GLAMERDOC++
Gravitational Lensing Code Library
|
A iterator class that allows for movement through the tree without changing anything in the tree itself. More...
#include <oTreeNB.h>
Public Member Functions | |
| iterator (OTreeNB< PType > *tree) | |
| Sets the top or root to the top of "tree". | |
| iterator (Branch *branch) | |
| Sets the root to the input branch so that this will be a subtree in branch is not the real root. | |
| iterator & | operator= (iterator &it) |
| iterator & | operator= (const Branch *branch) |
| Branch * | operator* () |
| Returns a pointer to the current Branch. | |
| bool | up () |
| bool | down (short child) |
| Move to child. | |
| bool | atTop () const |
| bool | atLeaf () const |
| bool | walk (bool allowDescent, iterator end) |
A iterator class that allows for movement through the tree without changing anything in the tree itself.
|
inline |
walk the tree, returns false if the next step would be to move to the brother of the end iterator
end = tree.begin() if it is going to the end of the tree allowDescent = true if it is allowed to go down to the child , false if it should only go to the next brother
1.8.18