#include <cstreend.h>
Public Methods | |
bool | IsLeaf () |
void | RemoveChild (csTreeNode *child) |
void | AddChild (csTreeNode *child) |
csTreeNode (csTreeNode *theParent=NULL) | |
virtual | ~csTreeNode () |
csTreeNode* | DSF (bool(*TreeFunc)(csTreeNode *node, csSome param, bool stopOnSuccess), bool(*SelBranch)(csTreeNode *node), csSome param, bool stopOnSuccess) |
Execute a function on this node and its children. More... | |
csTreeNode* | BSF (bool(*TreeFunc)(csTreeNode *node, csSome param, bool stopOnSuccess), bool(*SelBranch)(csTreeNode *node), csSome param, bool stopOnSuccess) |
Execute a function on this node and its children. More... | |
Public Attributes | |
csTreeNode* | parent |
csVector | children |
|
Execute a function on this node and its children. Do this in "BreadthSearchFirst" order, that is check first all direct children before diving into subchildren. Returns the last node where TreeFunc resulted in TRUE. If stopOnSuccess is true, then execution is stoped after first successful execution of TreeFunc. SelBranch lets you decide which children to select for further investugation. NULL means all children. |
|
Execute a function on this node and its children. Do this in "DepthSearchFirst" order, that is check a childs children before testing the next direct child. Returns the last node where TreeFunc resulted in TRUE. If stopOnSuccess is true, then execution is stoped after first successful execution of TreeFunc. SelBranch lets you decide which children to select for further investugation. NULL means all children. |