ITK
5.1.0
Insight Toolkit
|
#include <itkPostOrderTreeIterator.h>
Public Types | |
using | NodeType = typename Superclass::NodeType |
using | Self = PostOrderTreeIterator |
using | Superclass = TreeIteratorBase< TTreeType > |
using | TreeNodeType = typename Superclass::TreeNodeType |
using | TreeType = TTreeType |
using | ValueType = typename TTreeType::ValueType |
Public Types inherited from itk::TreeIteratorBase< TTreeType > | |
using | ChildIdentifier = typename TreeNodeType::ChildIdentifier |
using | NodeType = TreeIteratorBaseNodeEnum |
using | Self = TreeIteratorBase |
using | TreeNodeType = typename TTreeType::TreeNodeType |
using | ValueType = typename TTreeType::ValueType |
PostOrderTreeIterator (TreeType *tree) | |
NodeType | GetType () const override |
TreeIteratorBase< TTreeType > * | Clone () override |
const ValueType & | Next () override |
bool | HasNext () const override |
const TreeNodeType * | FindNextNode () const |
const TreeNodeType * | FindMostRightLeaf (TreeNodeType *node) const |
const TreeNodeType * | FindSister (TreeNodeType *node) const |
Additional Inherited Members | |
Public Member Functions inherited from itk::TreeIteratorBase< TTreeType > | |
virtual bool | Add (int position, ValueType element) |
virtual bool | Add (TTreeType &subTree) |
virtual bool | Add (ValueType element) |
virtual int | ChildPosition (ValueType element) const |
virtual TreeIteratorBase< TTreeType > * | Children () |
virtual int | Count () |
virtual int | CountChildren () const |
virtual bool | Disconnect () |
virtual const ValueType & | Get () const |
virtual TreeIteratorBase< TTreeType > * | GetChild (int number) const |
virtual TreeNodeType * | GetNode () |
virtual const TreeNodeType * | GetNode () const |
const TreeNodeType * | GetParent () const |
TreeNodeType * | GetRoot () |
const TreeNodeType * | GetRoot () const |
virtual TTreeType * | GetSubTree () const |
TTreeType * | GetTree () const |
void | GoToBegin () |
virtual bool | GoToChild (ChildIdentifier number=0) |
void | GoToEnd () |
virtual bool | GoToParent () |
virtual bool | HasChild (int number=0) const |
virtual bool | HasParent () const |
bool | IsAtBegin () const |
bool | IsAtEnd () const |
virtual bool | IsLeaf () const |
virtual bool | IsRoot () const |
virtual TreeIteratorBase< TTreeType > * | Parents () |
bool | Remove () |
virtual bool | RemoveChild (int number) |
void | Set (ValueType element) |
Self & | operator++ () |
void | operator++ (int) |
Self & | operator= (const Self &iterator) |
virtual | ~TreeIteratorBase ()=default |
Protected Member Functions inherited from itk::TreeIteratorBase< TTreeType > | |
TreeIteratorBase (TTreeType *tree, const TreeNodeType *start) | |
TreeIteratorBase (const TTreeType *tree, const TreeNodeType *start) | |
Protected Attributes inherited from itk::TreeIteratorBase< TTreeType > | |
TreeNodeType * | m_Position |
TreeNodeType * | m_Begin |
const TreeNodeType * | m_Root |
TTreeType * | m_Tree |
Definition at line 26 of file itkPostOrderTreeIterator.h.
using itk::PostOrderTreeIterator< TTreeType >::NodeType = typename Superclass::NodeType |
Definition at line 35 of file itkPostOrderTreeIterator.h.
using itk::PostOrderTreeIterator< TTreeType >::Self = PostOrderTreeIterator |
Typedefs
Definition at line 30 of file itkPostOrderTreeIterator.h.
using itk::PostOrderTreeIterator< TTreeType >::Superclass = TreeIteratorBase<TTreeType> |
Definition at line 31 of file itkPostOrderTreeIterator.h.
using itk::PostOrderTreeIterator< TTreeType >::TreeNodeType = typename Superclass::TreeNodeType |
Definition at line 34 of file itkPostOrderTreeIterator.h.
using itk::PostOrderTreeIterator< TTreeType >::TreeType = TTreeType |
Definition at line 32 of file itkPostOrderTreeIterator.h.
using itk::PostOrderTreeIterator< TTreeType >::ValueType = typename TTreeType::ValueType |
Definition at line 33 of file itkPostOrderTreeIterator.h.
itk::PostOrderTreeIterator< TTreeType >::PostOrderTreeIterator | ( | TreeType * | tree | ) |
Constructor
Definition at line 70 of file itkPostOrderTreeIterator.h.
References itk::PostOrderTreeIterator< TTreeType >::FindMostRightLeaf(), itk::TreeIteratorBase< TTreeType >::m_Begin, and itk::TreeIteratorBase< TTreeType >::m_Position.
|
overridevirtual |
Clone function
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 229 of file itkPostOrderTreeIterator.h.
|
protected |
Find the most right leaf
Definition at line 191 of file itkPostOrderTreeIterator.h.
Referenced by itk::PostOrderTreeIterator< TTreeType >::PostOrderTreeIterator().
|
protected |
Find the next node
Definition at line 125 of file itkPostOrderTreeIterator.h.
|
protected |
Find the sister node
Definition at line 153 of file itkPostOrderTreeIterator.h.
|
overridevirtual |
Get the type of the iterator
Return the type of the iterator
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 94 of file itkPostOrderTreeIterator.h.
References itk::POSTORDER.
|
overrideprotectedvirtual |
Return true if the next node exists
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 102 of file itkPostOrderTreeIterator.h.
|
overrideprotectedvirtual |
Return the next node
Go to the next node
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 115 of file itkPostOrderTreeIterator.h.