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

#include <itkRootTreeIterator.h>

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

Detailed Description

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

Examples:
DataRepresentation/Containers/TreeContainer.cxx.

Definition at line 26 of file itkRootTreeIterator.h.

Public Types

typedef Superclass::NodeType NodeType
 
typedef TreeIteratorBase
< TTreeType > 
Superclass
 
typedef Superclass::TreeNodeType TreeNodeType
 
typedef TTreeType TreeType
 
typedef TTreeType::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
 
 RootTreeIterator (TreeType *tree, const TreeNodeType *start=NULL)
 
TreeIteratorBase< TTreeType > * Clone ()
 
- 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 (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 ()
 
Selfoperator++ ()
 
void operator++ (int)
 
Selfoperator= (const Self &iterator)
 

Protected Member Functions

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

Private Member Functions

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>
typedef Superclass::NodeType itk::RootTreeIterator< TTreeType >::NodeType

Definition at line 35 of file itkRootTreeIterator.h.

template<typename TTreeType>
typedef TreeIteratorBase< TTreeType > itk::RootTreeIterator< TTreeType >::Superclass

Typedefs

Definition at line 31 of file itkRootTreeIterator.h.

template<typename TTreeType>
typedef Superclass::TreeNodeType itk::RootTreeIterator< TTreeType >::TreeNodeType

Definition at line 34 of file itkRootTreeIterator.h.

template<typename TTreeType>
typedef TTreeType itk::RootTreeIterator< TTreeType >::TreeType

Definition at line 32 of file itkRootTreeIterator.h.

template<typename TTreeType>
typedef TTreeType::ValueType itk::RootTreeIterator< TTreeType >::ValueType

Definition at line 33 of file itkRootTreeIterator.h.

Constructor & Destructor Documentation

template<typename TTreeType >
itk::RootTreeIterator< TTreeType >::RootTreeIterator ( TreeType tree,
const TreeNodeType start = NULL 
)

Member Function Documentation

template<typename TTreeType >
TreeIteratorBase< TTreeType > * itk::RootTreeIterator< TTreeType >::Clone ( )
virtual

Clone function

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 124 of file itkRootTreeIterator.h.

template<typename TTreeType >
const RootTreeIterator< TTreeType >::TreeNodeType * itk::RootTreeIterator< TTreeType >::FindNextNode ( ) const
private

Find the next node

Definition at line 108 of file itkRootTreeIterator.h.

template<typename TTreeType >
RootTreeIterator< TTreeType >::NodeType itk::RootTreeIterator< TTreeType >::GetType ( void  ) const
virtual

Return the type of the iterator

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 77 of file itkRootTreeIterator.h.

template<typename TTreeType >
bool itk::RootTreeIterator< TTreeType >::HasNext ( ) const
protectedvirtual

Return true if the next node exists

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 85 of file itkRootTreeIterator.h.

template<typename TTreeType >
const RootTreeIterator< TTreeType >::ValueType & itk::RootTreeIterator< TTreeType >::Next ( )
protectedvirtual

Return the next node

Go to the next node

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 98 of file itkRootTreeIterator.h.


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