ITK  5.0.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | List of all members
itk::LeafTreeIterator< TTreeType > Class Template Reference

#include <itkLeafTreeIterator.h>

+ Inheritance diagram for itk::LeafTreeIterator< TTreeType >:
+ Collaboration diagram for itk::LeafTreeIterator< TTreeType >:

Detailed Description

template<typename TTreeType>
class itk::LeafTreeIterator< TTreeType >

Examples:
Examples/DataRepresentation/Containers/TreeContainer.cxx.

Definition at line 26 of file 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
 
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

NodeType GetType () const override
 
 ~LeafTreeIterator () override
 
 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 ValueTypeGet () const
 
virtual TreeIteratorBase
< TTreeType > * 
GetChild (int number) const
 
virtual TreeNodeTypeGetNode ()
 
virtual const TreeNodeTypeGetNode () const
 
const TreeNodeTypeGetParent () const
 
TreeNodeTypeGetRoot ()
 
const TreeNodeTypeGetRoot () 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
 
void operator++ (int)
 
virtual TreeIteratorBase
< TTreeType > * 
Parents ()
 
bool Remove ()
 
virtual bool RemoveChild (int number)
 
void Set (ValueType element)
 
virtual ~TreeIteratorBase ()=default
 
Selfoperator++ ()
 
Selfoperator= (const Self &iterator)
 

Protected Member Functions

const ValueTypeNext () override
 
bool HasNext () const override
 
- Protected Member Functions inherited from itk::TreeIteratorBase< TTreeType >
 TreeIteratorBase (TTreeType *tree, const TreeNodeType *start)
 
 TreeIteratorBase (const TTreeType *tree, const TreeNodeType *start)
 
TreeIteratorBase< TTreeType > * Clone () override
 
const TreeNodeTypeFindNextNode () const
 

Additional Inherited Members

- Protected Attributes inherited from itk::TreeIteratorBase< TTreeType >
TreeNodeTypem_Begin
 
TreeNodeTypem_End
 
TreeNodeTypem_Position
 
const TreeNodeTypem_Root
 
TTreeType * m_Tree
 

Member Typedef Documentation

template<typename TTreeType>
using itk::LeafTreeIterator< TTreeType >::NodeType = typename Superclass::NodeType

Definition at line 36 of file itkLeafTreeIterator.h.

template<typename TTreeType>
using itk::LeafTreeIterator< TTreeType >::Self = LeafTreeIterator

Typedefs

Definition at line 31 of file itkLeafTreeIterator.h.

template<typename TTreeType>
using itk::LeafTreeIterator< TTreeType >::Superclass = TreeIteratorBase< TTreeType >

Definition at line 32 of file itkLeafTreeIterator.h.

template<typename TTreeType>
using itk::LeafTreeIterator< TTreeType >::TreeNodeType = typename Superclass::TreeNodeType

Definition at line 35 of file itkLeafTreeIterator.h.

template<typename TTreeType>
using itk::LeafTreeIterator< TTreeType >::TreeType = TTreeType

Definition at line 33 of file itkLeafTreeIterator.h.

template<typename TTreeType>
using itk::LeafTreeIterator< TTreeType >::ValueType = typename TreeType::ValueType

Definition at line 34 of file itkLeafTreeIterator.h.

Constructor & Destructor Documentation

template<typename TTreeType >
itk::LeafTreeIterator< TTreeType >::LeafTreeIterator ( const TreeType tree)
template<typename TTreeType >
itk::LeafTreeIterator< TTreeType >::LeafTreeIterator ( TreeType tree)
template<typename TTreeType >
itk::LeafTreeIterator< TTreeType >::~LeafTreeIterator ( )
overridedefault

Destructor

Member Function Documentation

template<typename TTreeType >
TreeIteratorBase< TTreeType > * itk::LeafTreeIterator< TTreeType >::Clone ( )
overridevirtual

Clone function

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 174 of file itkLeafTreeIterator.h.

template<typename TTreeType >
const LeafTreeIterator< TTreeType >::TreeNodeType * itk::LeafTreeIterator< TTreeType >::FindNextNode ( ) const
private
template<typename TTreeType >
LeafTreeIterator< TTreeType >::NodeType itk::LeafTreeIterator< TTreeType >::GetType ( ) const
overridevirtual

Return the type of iterator

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 110 of file itkLeafTreeIterator.h.

template<typename TTreeType >
bool itk::LeafTreeIterator< TTreeType >::HasNext ( ) const
overrideprotectedvirtual

Return true if the next value exists

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 117 of file itkLeafTreeIterator.h.

template<typename TTreeType >
const LeafTreeIterator< TTreeType >::ValueType & itk::LeafTreeIterator< TTreeType >::Next ( )
overrideprotectedvirtual

Return the next value

Return the next node

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 134 of file itkLeafTreeIterator.h.


The documentation for this class was generated from the following file: