Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Compound Members  

NodeVisitorBase Class Template Reference
[NodeVisitor]

Visitors are used to extend the Node classes without changing their implementation ('visitor pattern') NodeVisitor is the base class of all visitors. Visitors use an iterator to traverse the tree. So the result depends on the given iteration algorithm. If set to non-recursive they only visit one node. The default value is true, so the visitor works recursively. More...

#include <nodevisitor.h>

Inheritance diagram for NodeVisitorBase:

Inheritance graph
[legend]
List of all members.

Public Types

typedef NodeVisitorBase< _Node,
_NormalNode, _RootNode > 
_Self

Public Methods

 NodeVisitorBase ()
virtual ~NodeVisitorBase ()
virtual void visitNormalNode (_NormalNode *node)=0
virtual void visitRootNode (_RootNode *node)=0

Detailed Description

template<class _Node, class _NormalNode, class _RootNode>
class treecomp::NodeVisitorBase< _Node, _NormalNode, _RootNode >

Visitors are used to extend the Node classes without changing their implementation ('visitor pattern') NodeVisitor is the base class of all visitors. Visitors use an iterator to traverse the tree. So the result depends on the given iteration algorithm. If set to non-recursive they only visit one node. The default value is true, so the visitor works recursively.

Definition at line 62 of file nodevisitor.h.


Member Typedef Documentation

typedef NodeVisitorBase<_Node,_NormalNode,_RootNode> _Self
 

Reimplemented in NodeVisitor.

Definition at line 65 of file nodevisitor.h.


Constructor & Destructor Documentation

NodeVisitorBase   [inline, explicit]
 

Definition at line 67 of file nodevisitor.h.

virtual ~NodeVisitorBase   [inline, virtual]
 

Definition at line 71 of file nodevisitor.h.


Member Function Documentation

virtual void visitNormalNode _NormalNode *    node [pure virtual]
 

Implemented in NodeVisitor.

virtual void visitRootNode _RootNode *    node [pure virtual]
 

Implemented in NodeVisitor.


The documentation for this class was generated from the following file:
Generated on Mon Jan 6 12:02:24 2003 for TreeComp by doxygen1.2.17