ITK
5.1.0
Insight Toolkit
|
#include <itkPreOrderTreeIterator.h>
Public Types | |
using | NodeType = typename Superclass::NodeType |
using | Superclass = TreeIteratorBase< TTreeType > |
using | TreeNodeType = typename Superclass::TreeNodeType |
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 |
Public Member Functions | |
NodeType | GetType () const override |
PreOrderTreeIterator (const TTreeType *tree, const TreeNodeType *start=nullptr) | |
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 |
Friends | |
class | LeafTreeIterator< TTreeType > |
TreeIteratorBase< TTreeType > * | Clone () override |
const ValueType & | Next () override |
bool | HasNext () const override |
const TreeNodeType * | FindNextNode () const |
Additional Inherited Members | |
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 30 of file itkPreOrderTreeIterator.h.
using itk::PreOrderTreeIterator< TTreeType >::NodeType = typename Superclass::NodeType |
Definition at line 37 of file itkPreOrderTreeIterator.h.
using itk::PreOrderTreeIterator< TTreeType >::Superclass = TreeIteratorBase<TTreeType> |
Definition at line 35 of file itkPreOrderTreeIterator.h.
using itk::PreOrderTreeIterator< TTreeType >::TreeNodeType = typename Superclass::TreeNodeType |
Definition at line 36 of file itkPreOrderTreeIterator.h.
using itk::PreOrderTreeIterator< TTreeType >::ValueType = typename TTreeType::ValueType |
Typedefs
Definition at line 34 of file itkPreOrderTreeIterator.h.
itk::PreOrderTreeIterator< TTreeType >::PreOrderTreeIterator | ( | const TTreeType * | tree, |
const TreeNodeType * | start = nullptr |
||
) |
Constructor
Definition at line 72 of file itkPreOrderTreeIterator.h.
|
overridevirtual |
Clone function
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 165 of file itkPreOrderTreeIterator.h.
|
private |
Find the next node
Definition at line 114 of file itkPreOrderTreeIterator.h.
|
overridevirtual |
Get the type of the iterator
Return the type of the iterator
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 79 of file itkPreOrderTreeIterator.h.
References itk::PREORDER.
|
overrideprotectedvirtual |
Return true if the next node exists
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 87 of file itkPreOrderTreeIterator.h.
|
overrideprotectedvirtual |
Return the next node
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 100 of file itkPreOrderTreeIterator.h.
|
friend |
LeafTreeIterator uses PreOrderTreeIterator in its implementation, but it needs to adjust its root. A friend designation is added to correct behavior and retain backwards compatible behavior.
Definition at line 67 of file itkPreOrderTreeIterator.h.