ug4
ntree_traversal.h File Reference

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Enumerations

enum  ug::TraversalStates { ug::DONT_TRAVERSE_CHILDREN , ug::TRAVERSE_CHILDREN , ug::ABORT_TRAVERSAL }
 

Functions

template<class tree_t , class traverser_t >
void ug::TraverseBreadthFirst (const tree_t &tree, traverser_t &traverser)
 
template<class tree_t , class traverser_t >
void ug::TraverseDepthFirst (const tree_t &tree, traverser_t &traverser)
 
template<class tree_t , class traverser_t >
int ug::TraverseDepthFirstRecursion (const tree_t &tree, traverser_t &traverser, int curNode)