0.44.0
|
#include <iNodeVisitorPrintTree.h>
Inherits igor::iNodeVisitor.
Public Member Functions | |
iNodeVisitorPrintTree (bool brief=true) | |
virtual | ~iNodeVisitorPrintTree ()=default |
void | printToConsole (iNodePtr node) |
Public Member Functions inherited from igor::iNodeVisitor | |
iNodeVisitor ()=default | |
virtual | ~iNodeVisitor ()=default |
void | setTraverseInactiveChildren (bool traverseInactive=true) |
void | setTraverseSiblings (bool traverseSiblings=true) |
void | traverseTree (iNodePtr node) |
Protected Member Functions | |
void | preTraverse () override |
bool | preOrderVisit (iNodePtr node, iNodePtr nextSibling) override |
void | preLine () |
void | postOrderVisit (iNodePtr node) override |
void | postTraverse () override |
virtual void | preTraverse ()=0 |
virtual bool | preOrderVisit (iNodePtr node, iNodePtr nextSibling)=0 |
virtual void | postOrderVisit (iNodePtr node)=0 |
virtual void | postTraverse ()=0 |
traveses node tree and prints basic information in to console
igor::iNodeVisitorPrintTree::iNodeVisitorPrintTree | ( | bool | brief = true | ) |
initializes traversal config
brief | if true only a brief node info will be extracted |
|
virtualdefault |
does nothing
|
overrideprotectedvirtual |
handles output indentation
Implements igor::iNodeVisitor.
|
overrideprotectedvirtual |
some more output
Implements igor::iNodeVisitor.
|
protected |
|
overrideprotectedvirtual |
generates information string on every node passed by handles output indentation
node | current node |
Implements igor::iNodeVisitor.
|
overrideprotectedvirtual |
initialisation
Implements igor::iNodeVisitor.
void igor::iNodeVisitorPrintTree::printToConsole | ( | iNodePtr | node | ) |
traverses the tree and prints the output in console