golib  0.5
goBTreeAlgorithm< T > Class Template Reference

Running through a binary tree. More...

#include <gobtree.h>

Public Member Functions

bool breadthFirst (typename goBTree< T >::ElementPtr root)
 
bool depthFirst (typename goBTree< T >::ElementPtr root)
 Runs depth-first (left to right). More...
 
virtual bool action (typename goBTree< T >::ElementPtr node)
 

Detailed Description

template<class T>
class goBTreeAlgorithm< T >

Running through a binary tree.

Currently only offers depth first order.

Todo:
Add breadth first order.

Member Function Documentation

◆ depthFirst()

template<class T >
bool goBTreeAlgorithm< T >::depthFirst ( typename goBTree< T >::ElementPtr  root)

Runs depth-first (left to right).


Parameters
rootNode at which to start.

@return True if successful, false otherwise.


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