#include <nodevisitor.h>
Inheritance diagram for NodeVisitor:
Public Types | |
typedef NodeVisitor< _TIter, _Node, _NormalNode, _RootNode > | _Self |
typedef NodeVisitorBase< _Node, _NormalNode, _RootNode > | _Base |
Public Methods | |
NodeVisitor () | |
NodeVisitor (const _Self &nv) | |
no copying allowed, use clone() instead | |
virtual | ~NodeVisitor () |
Start the output process. | |
virtual void | operator() (_TIter &iter)=0 |
Start function. | |
virtual void | operator() (_Node *node) |
virtual void | visitNormalNode (_NormalNode *node)=0 |
virtual void | visitRootNode (_RootNode *node)=0 |
virtual void | setRecursive (bool recursive) |
'True' the Visitor iterates over children too. | |
virtual bool | isRecursive () const |
Protected Methods | |
virtual void | iterate (NodeVisitorBase< _Node, _NormalNode, _RootNode > *self) |
The visit iteration, should be called by start. | |
virtual void | init (_TIter &iter) |
Protected Attributes | |
_Node * | m_start |
_TIter * | m_iter |
local copy |
Definition at line 95 of file nodevisitor.h.
|
Reimplemented in LayoutVisitor, OutputVisitor, CollectVisitor, and DepthVisitor. Definition at line 99 of file nodevisitor.h. |
|
Reimplemented from NodeVisitorBase. Reimplemented in LayoutVisitor, OutputVisitor, CollectVisitor, and DepthVisitor. Definition at line 98 of file nodevisitor.h. |
|
Definition at line 102 of file nodevisitor.h. |
|
no copying allowed, use clone() instead
Definition at line 107 of file nodevisitor.h. |
|
Start the output process.
|
|
Definition at line 319 of file nodevisitor.h. References NodeVisitor::m_iter, and NodeVisitor::m_start. |
|
Definition at line 124 of file nodevisitor.h. |
|
The visit iteration, should be called by start.
Definition at line 295 of file nodevisitor.h. References NodeVisitor::m_iter, and NodeVisitor::m_start. |
|
Reimplemented in OutputVisitor. Definition at line 117 of file nodevisitor.h. |
|
Start function. Derived implementations MUST call the init method! Implemented in CollectVisitor. Referenced by NodeVisitor< _TIter, Node< _TContent >, NormalNode< _TContent >, RootNode< _TContent > >::operator()(). |
|
'True' the Visitor iterates over children too. 'False' the Visitor only visits the start node Definition at line 123 of file nodevisitor.h. |
|
Implements NodeVisitorBase. Implemented in LayoutVisitor, OutputVisitor, CollectVisitor, and DepthVisitor. |
|
Implements NodeVisitorBase. Implemented in LayoutVisitor, OutputVisitor, CollectVisitor, and DepthVisitor. |
|
local copy
Definition at line 134 of file nodevisitor.h. Referenced by NodeVisitor::init(), NodeVisitor::iterate(), and NodeVisitor< _TIter, Node< _TContent >, NormalNode< _TContent >, RootNode< _TContent > >::NodeVisitor(). |
|
Definition at line 132 of file nodevisitor.h. Referenced by NodeVisitor::init(), NodeVisitor::iterate(), and NodeVisitor< _TIter, Node< _TContent >, NormalNode< _TContent >, RootNode< _TContent > >::NodeVisitor(). |