ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkLeafTreeIterator.h>
Definition at line 26 of file itkLeafTreeIterator.h.
Public Types | |
typedef Superclass::NodeType | NodeType |
typedef LeafTreeIterator | Self |
typedef TreeIteratorBase < TTreeType > | Superclass |
typedef Superclass::TreeNodeType | TreeNodeType |
typedef TTreeType | TreeType |
typedef TreeType::ValueType | ValueType |
Public Types inherited from itk::TreeIteratorBase< TTreeType > | |
typedef TreeNodeType::ChildIdentifier | ChildIdentifier |
enum | NodeType { UNDEFIND = 0, PREORDER = 1, INORDER = 2, POSTORDER = 3, LEVELORDER = 4, CHILD = 5, ROOT = 6, LEAF = 7 } |
typedef TreeIteratorBase | Self |
typedef TTreeType::TreeNodeType | TreeNodeType |
typedef TTreeType::ValueType | ValueType |
Public Member Functions | |
NodeType | GetType () const |
virtual | ~LeafTreeIterator () |
LeafTreeIterator (const TreeType *tree) | |
LeafTreeIterator (TreeType *tree) | |
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 () |
virtual bool | GoToChild (ChildIdentifier number=0) |
void | GoToEnd () |
virtual bool | GoToParent () |
virtual bool | HasChild (int number=0) const |
virtual bool | HasParent () const |
bool | IsAtBegin (void) const |
bool | IsAtEnd (void) const |
virtual bool | IsLeaf () const |
virtual bool | IsRoot () const |
virtual TreeIteratorBase < TTreeType > * | Parents () |
bool | Remove () |
virtual bool | RemoveChild (int number) |
void | Set (ValueType element) |
virtual | ~TreeIteratorBase () |
Self & | operator++ () |
void | operator++ (int) |
Self & | operator= (const Self &iterator) |
Protected Member Functions | |
const ValueType & | Next () |
bool | HasNext () const |
Protected Member Functions inherited from itk::TreeIteratorBase< TTreeType > | |
TreeIteratorBase (TTreeType *tree, const TreeNodeType *start) | |
TreeIteratorBase (const TTreeType *tree, const TreeNodeType *start) | |
TreeIteratorBase< TTreeType > * | Clone () |
const TreeNodeType * | FindNextNode () const |
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 |
typedef Superclass::NodeType itk::LeafTreeIterator< TTreeType >::NodeType |
Definition at line 36 of file itkLeafTreeIterator.h.
typedef LeafTreeIterator itk::LeafTreeIterator< TTreeType >::Self |
Typedefs
Definition at line 31 of file itkLeafTreeIterator.h.
typedef TreeIteratorBase< TTreeType > itk::LeafTreeIterator< TTreeType >::Superclass |
Definition at line 32 of file itkLeafTreeIterator.h.
typedef Superclass::TreeNodeType itk::LeafTreeIterator< TTreeType >::TreeNodeType |
Definition at line 35 of file itkLeafTreeIterator.h.
typedef TTreeType itk::LeafTreeIterator< TTreeType >::TreeType |
Definition at line 33 of file itkLeafTreeIterator.h.
typedef TreeType::ValueType itk::LeafTreeIterator< TTreeType >::ValueType |
Definition at line 34 of file itkLeafTreeIterator.h.
itk::LeafTreeIterator< TTreeType >::LeafTreeIterator | ( | const TreeType * | tree | ) |
Constructor
Definition at line 69 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 87 of file itkLeafTreeIterator.h.
References itk::LeafTreeIterator< TTreeType >::FindNextNode(), and itk::TreeIteratorBase< TTreeType >::m_Begin.
|
virtual |
Destructor
Definition at line 105 of file itkLeafTreeIterator.h.
|
virtual |
Clone function
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 175 of file itkLeafTreeIterator.h.
|
private |
Find the next node
Find the next node given the position
Definition at line 145 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().
|
virtual |
Return the type of iterator
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 111 of file itkLeafTreeIterator.h.
|
protectedvirtual |
Return true if the next value exists
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 118 of file itkLeafTreeIterator.h.
|
protectedvirtual |
Return the next value
Return the next node
Implements itk::TreeIteratorBase< TTreeType >.
Definition at line 135 of file itkLeafTreeIterator.h.