ITK
5.1.0
Insight Toolkit
|
#include <itkLeafTreeIterator.h>
Public Types | |
using | NodeType = typename Superclass::NodeType |
using | Self = LeafTreeIterator |
using | Superclass = TreeIteratorBase< TTreeType > |
using | TreeNodeType = typename Superclass::TreeNodeType |
using | TreeType = TTreeType |
using | ValueType = typename TreeType::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 |
LeafTreeIterator (const TreeType *tree) | |
LeafTreeIterator (TreeType *tree) | |
~LeafTreeIterator () override | |
NodeType | GetType () const override |
TreeIteratorBase< TTreeType > * | Clone () override |
const ValueType & | Next () override |
bool | HasNext () const override |
const TreeNodeType * | FindNextNode () 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 itkLeafTreeIterator.h.
using itk::LeafTreeIterator< TTreeType >::NodeType = typename Superclass::NodeType |
Definition at line 35 of file itkLeafTreeIterator.h.
using itk::LeafTreeIterator< TTreeType >::Self = LeafTreeIterator |
Typedefs
Definition at line 30 of file itkLeafTreeIterator.h.
using itk::LeafTreeIterator< TTreeType >::Superclass = TreeIteratorBase<TTreeType> |
Definition at line 31 of file itkLeafTreeIterator.h.
using itk::LeafTreeIterator< TTreeType >::TreeNodeType = typename Superclass::TreeNodeType |
Definition at line 34 of file itkLeafTreeIterator.h.
using itk::LeafTreeIterator< TTreeType >::TreeType = TTreeType |
Definition at line 32 of file itkLeafTreeIterator.h.
using itk::LeafTreeIterator< TTreeType >::ValueType = typename TreeType::ValueType |
Definition at line 33 of file itkLeafTreeIterator.h.
itk::LeafTreeIterator< TTreeType >::LeafTreeIterator | ( | const TreeType * | tree | ) |
Constructor
Definition at line 71 of file itkLeafTreeIterator.h.
References itk::LeafTreeIterator< TTreeType >::FindNextNode(), and itk::TreeIteratorBase< TTreeType >::m_Begin.
itk::LeafTreeIterator< TTreeType >::LeafTreeIterator | ( | TreeType * | tree | ) |
Constructor
Definition at line 89 of file itkLeafTreeIterator.h.
References itk::LeafTreeIterator< TTreeType >::FindNextNode(), and itk::TreeIteratorBase< TTreeType >::m_Begin.
|
overridedefault |
Destructor
|
overridevirtual |
Clone function
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 182 of file itkLeafTreeIterator.h.
|
private |
Find the next node
Find the next node given the position
Definition at line 151 of file itkLeafTreeIterator.h.
References itk::TreeIteratorBase< TTreeType >::GetNode(), itk::TreeIteratorBase< TTreeType >::HasChild(), itk::TreeIteratorBase< TTreeType >::IsAtEnd(), and itk::TreeIteratorBase< TTreeType >::m_Root.
Referenced by itk::LeafTreeIterator< TTreeType >::LeafTreeIterator().
|
overridevirtual |
Return the type of iterator
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 112 of file itkLeafTreeIterator.h.
References itk::LEAF.
|
overrideprotectedvirtual |
Return true if the next value exists
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 120 of file itkLeafTreeIterator.h.
|
overrideprotectedvirtual |
Return the next value
Return the next node
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 137 of file itkLeafTreeIterator.h.