ITK
5.0.0
Insight Segmentation and Registration Toolkit
|
#include <itkChildTreeIterator.h>
Definition at line 26 of file itkChildTreeIterator.h.
Public Types | |
using | ChildIdentifier = typename TreeNodeType::ChildIdentifier |
using | NodeType = typename Superclass::NodeType |
using | Self = ChildTreeIterator |
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 |
enum | NodeType { UNDEFIND = 0, PREORDER = 1, INORDER = 2, POSTORDER = 3, LEVELORDER = 4, CHILD = 5, ROOT = 6, LEAF = 7 } |
using | Self = TreeIteratorBase |
using | TreeNodeType = typename TTreeType::TreeNodeType |
using | ValueType = typename TTreeType::ValueType |
Public Member Functions | |
ChildTreeIterator (TreeType *tree, const TreeNodeType *start=nullptr) | |
ChildTreeIterator (const TreeIteratorBase< TTreeType > &iterator) | |
TreeIteratorBase< TTreeType > * | Clone () override |
NodeType | GetType () const override |
bool | GoToChild (ChildIdentifier number=0) override |
bool | GoToParent () override |
Self & | operator= (Superclass &iterator) |
Public Member Functions inherited from itk::TreeIteratorBase< TTreeType > | |
virtual bool | Add (ValueType element) |
virtual bool | Add (int position, ValueType element) |
virtual bool | Add (TTreeType &subTree) |
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 () |
void | GoToEnd () |
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 |
void | operator++ (int) |
virtual TreeIteratorBase < TTreeType > * | Parents () |
bool | Remove () |
virtual bool | RemoveChild (int number) |
void | Set (ValueType element) |
virtual | ~TreeIteratorBase ()=default |
Self & | operator++ () |
Self & | operator= (const Self &iterator) |
Protected Member Functions | |
bool | HasNext () const override |
const ValueType & | Next () override |
Protected Member Functions inherited from itk::TreeIteratorBase< TTreeType > | |
TreeIteratorBase (TTreeType *tree, const TreeNodeType *start) | |
TreeIteratorBase (const TTreeType *tree, const TreeNodeType *start) | |
Private Attributes | |
ChildIdentifier | m_ListPosition |
TreeNodeType * | m_ParentNode |
Additional Inherited Members | |
Protected Attributes inherited from itk::TreeIteratorBase< TTreeType > | |
TreeNodeType * | m_Begin |
TreeNodeType * | m_End |
TreeNodeType * | m_Position |
const TreeNodeType * | m_Root |
TTreeType * | m_Tree |
using itk::ChildTreeIterator< TTreeType >::ChildIdentifier = typename TreeNodeType::ChildIdentifier |
Definition at line 36 of file itkChildTreeIterator.h.
using itk::ChildTreeIterator< TTreeType >::NodeType = typename Superclass::NodeType |
Definition at line 37 of file itkChildTreeIterator.h.
using itk::ChildTreeIterator< TTreeType >::Self = ChildTreeIterator |
Typedefs
Definition at line 31 of file itkChildTreeIterator.h.
using itk::ChildTreeIterator< TTreeType >::Superclass = TreeIteratorBase< TTreeType > |
Definition at line 32 of file itkChildTreeIterator.h.
using itk::ChildTreeIterator< TTreeType >::TreeNodeType = typename Superclass::TreeNodeType |
Definition at line 35 of file itkChildTreeIterator.h.
using itk::ChildTreeIterator< TTreeType >::TreeType = TTreeType |
Definition at line 33 of file itkChildTreeIterator.h.
using itk::ChildTreeIterator< TTreeType >::ValueType = typename TTreeType::ValueType |
Definition at line 34 of file itkChildTreeIterator.h.
itk::ChildTreeIterator< TTreeType >::ChildTreeIterator | ( | TreeType * | tree, |
const TreeNodeType * | start = nullptr |
||
) |
Constructor
itk::ChildTreeIterator< TTreeType >::ChildTreeIterator | ( | const TreeIteratorBase< TTreeType > & | iterator | ) |
Constructor
|
overridevirtual |
Clone function
Implements itk::TreeIteratorBase< TTreeType >.
|
overridevirtual |
Get the type of the iterator
Implements itk::TreeIteratorBase< TTreeType >.
|
overridevirtual |
Go to a specific child node
Reimplemented from itk::TreeIteratorBase< TTreeType >.
|
overridevirtual |
Go to a parent node
Reimplemented from itk::TreeIteratorBase< TTreeType >.
|
overrideprotectedvirtual |
Return true if the next value exists
Implements itk::TreeIteratorBase< TTreeType >.
|
overrideprotectedvirtual |
Get the next value
Implements itk::TreeIteratorBase< TTreeType >.
|
inline |
operator =
Definition at line 58 of file itkChildTreeIterator.h.
References itk::ChildTreeIterator< TTreeType >::m_ListPosition.
|
mutableprivate |
Definition at line 81 of file itkChildTreeIterator.h.
Referenced by itk::ChildTreeIterator< TTreeType >::operator=().
|
private |
Definition at line 82 of file itkChildTreeIterator.h.