igor::iNodeVisitorSearchName Class Reference

#include <iNodeVisitorSearchName.h>

Inherits igor::iNodeVisitor.

Public Member Functions

 iNodeVisitorSearchName ()
 
virtual ~iNodeVisitorSearchName ()=default
 
const std::vector< uint64 > & find (iNodePtr node, const iaString &name)
 
- 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 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
 

Detailed Description

traveses node tree and prints basic information in to console

Constructor & Destructor Documentation

◆ iNodeVisitorSearchName()

igor::iNodeVisitorSearchName::iNodeVisitorSearchName ( )

initializes traversal config

◆ ~iNodeVisitorSearchName()

virtual igor::iNodeVisitorSearchName::~iNodeVisitorSearchName ( )
virtualdefault

does nothing

Member Function Documentation

◆ find()

const std::vector< uint64 > & igor::iNodeVisitorSearchName::find ( iNodePtr  node,
const iaString name 
)

traverses the tree and returns all node id's using the specified name

Parameters
namethe name to search for
Returns
list of found node ids

◆ postOrderVisit()

void igor::iNodeVisitorSearchName::postOrderVisit ( iNodePtr  node)
overrideprotectedvirtual

not implemented

Implements igor::iNodeVisitor.

◆ postTraverse()

void igor::iNodeVisitorSearchName::postTraverse ( )
overrideprotectedvirtual

not implemented

Implements igor::iNodeVisitor.

◆ preOrderVisit()

bool igor::iNodeVisitorSearchName::preOrderVisit ( iNodePtr  node,
iNodePtr  nextSibling 
)
overrideprotectedvirtual

traversing tree and check if the current node's name matches the search string

Parameters
nodethe current node during traversal

Implements igor::iNodeVisitor.

◆ preTraverse()

void igor::iNodeVisitorSearchName::preTraverse ( )
overrideprotectedvirtual

initialisation

Implements igor::iNodeVisitor.


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