Loading...
Searching...
No Matches
Public Member Functions | List of all members
TreeVisitor< T > Class Template Reference

Default implementation of a tree visitor (concept) compatible TreeUtils::traverser() More...

#include <TreeUtils.h>

Inheritance diagram for TreeVisitor< T >:
Inheritance graph
[legend]

Public Member Functions

virtual int visitPrefix (T &tree, const typename T::path_t &path)
 Tasks to be executed before traversing child nodes.
 
virtual int visitPostfix (T &tree, const typename T::path_t &path)
 Tasks to be executed after traversing child nodes.
 

Detailed Description

template<class T>
class drain::TreeVisitor< T >

Default implementation of a tree visitor (concept) compatible TreeUtils::traverser()

Notice that the first argument (visitor) of TreeUtils::traverser() is templated, hence does not have to be derived from this class.

Member Function Documentation

◆ visitPostfix()

template<class T >
virtual int visitPostfix ( T &  tree,
const typename T::path_t &  path 
)
inlinevirtual

Tasks to be executed after traversing child nodes.

Reimplemented in TreePruner< T >.

◆ visitPrefix()

template<class T >
virtual int visitPrefix ( T &  tree,
const typename T::path_t &  path 
)
inlinevirtual

Tasks to be executed before traversing child nodes.

Reimplemented in TreePruner< T >.


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