Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itk::LevelOrderTreeIterator< TTreeType > Class Template Reference

#include <itkLevelOrderTreeIterator.h>

Inheritance diagram for itk::LevelOrderTreeIterator< TTreeType >:

Inheritance graph
[legend]
Collaboration diagram for itk::LevelOrderTreeIterator< TTreeType >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef TreeIteratorBase<
TTreeType > 
Superclass
typedef Superclass::Self Self
typedef TTreeType TreeType
typedef TTreeType::ValueType ValueType
typedef Superclass::TreeNodeType TreeNodeType

Public Member Functions

virtual ~LevelOrderTreeIterator ()
int GetType () const
int GetStartLevel () const
int GetEndLevel () const
int GetLevel () const
 LevelOrderTreeIterator (TreeType *tree, int endLevel=INT_MAX, const TreeNodeType *start=NULL)
 LevelOrderTreeIterator (TreeType *tree, int startLevel, int endLevel, const TreeNodeType *start=NULL)
TreeIteratorBase< TTreeType > * Clone ()
Selfoperator= (Superclass &iterator)

Protected Member Functions

const ValueTypeNext ()
bool HasNext () const

template<class TTreeType>
class itk::LevelOrderTreeIterator< TTreeType >


Member Typedef Documentation

template<class TTreeType>
typedef Superclass::Self itk::LevelOrderTreeIterator< TTreeType >::Self
 

Typedefs

Reimplemented from itk::TreeIteratorBase< TTreeType >.

Definition at line 32 of file itkLevelOrderTreeIterator.h.

Referenced by itk::LevelOrderTreeIterator< TTreeType >::~LevelOrderTreeIterator().

template<class TTreeType>
typedef TreeIteratorBase<TTreeType> itk::LevelOrderTreeIterator< TTreeType >::Superclass
 

Typedefs

Definition at line 31 of file itkLevelOrderTreeIterator.h.

Referenced by itk::LevelOrderTreeIterator< TTreeType >::~LevelOrderTreeIterator().

template<class TTreeType>
typedef Superclass::TreeNodeType itk::LevelOrderTreeIterator< TTreeType >::TreeNodeType
 

Reimplemented from itk::TreeIteratorBase< TTreeType >.

Definition at line 35 of file itkLevelOrderTreeIterator.h.

Referenced by itk::LevelOrderTreeIterator< TTreeType >::GetEndLevel(), and itk::LevelOrderTreeIterator< TTreeType >::GetLevel().

template<class TTreeType>
typedef TTreeType itk::LevelOrderTreeIterator< TTreeType >::TreeType
 

Definition at line 33 of file itkLevelOrderTreeIterator.h.

template<class TTreeType>
typedef TTreeType::ValueType itk::LevelOrderTreeIterator< TTreeType >::ValueType
 

Reimplemented from itk::TreeIteratorBase< TTreeType >.

Definition at line 34 of file itkLevelOrderTreeIterator.h.


Constructor & Destructor Documentation

template<class TTreeType>
itk::LevelOrderTreeIterator< TTreeType >::LevelOrderTreeIterator TreeType tree,
int  endLevel = INT_MAX,
const TreeNodeType start = NULL
 

Constructors

template<class TTreeType>
itk::LevelOrderTreeIterator< TTreeType >::LevelOrderTreeIterator TreeType tree,
int  startLevel,
int  endLevel,
const TreeNodeType start = NULL
 

Constructors

template<class TTreeType>
virtual itk::LevelOrderTreeIterator< TTreeType >::~LevelOrderTreeIterator  )  [inline, virtual]
 

Definition at line 42 of file itkLevelOrderTreeIterator.h.

References itk::LevelOrderTreeIterator< TTreeType >::Self, and itk::LevelOrderTreeIterator< TTreeType >::Superclass.


Member Function Documentation

template<class TTreeType>
TreeIteratorBase< TTreeType > * itk::LevelOrderTreeIterator< TTreeType >::Clone  )  [virtual]
 

Clone function

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 291 of file itkLevelOrderTreeIterator.h.

template<class TTreeType>
int itk::LevelOrderTreeIterator< TTreeType >::GetEndLevel  )  const
 

Get the end level

Definition at line 183 of file itkLevelOrderTreeIterator.h.

References itk::LevelOrderTreeIterator< TTreeType >::GetLevel(), NULL, and itk::LevelOrderTreeIterator< TTreeType >::TreeNodeType.

template<class TTreeType>
int itk::LevelOrderTreeIterator< TTreeType >::GetLevel  )  const
 

Get the current level

Definition at line 215 of file itkLevelOrderTreeIterator.h.

References itk::LevelOrderTreeIterator< TTreeType >::TreeNodeType.

Referenced by itk::LevelOrderTreeIterator< TTreeType >::GetEndLevel().

template<class TTreeType>
int itk::LevelOrderTreeIterator< TTreeType >::GetStartLevel  )  const
 

Get the start level

Definition at line 175 of file itkLevelOrderTreeIterator.h.

template<class TTreeType>
int itk::LevelOrderTreeIterator< TTreeType >::GetType  )  const [virtual]
 

Get the type of the iterator

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 145 of file itkLevelOrderTreeIterator.h.

template<class TTreeType>
bool itk::LevelOrderTreeIterator< TTreeType >::HasNext  )  const [protected, virtual]
 

Return true if the next node exists

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 153 of file itkLevelOrderTreeIterator.h.

template<class TTreeType>
const LevelOrderTreeIterator< TTreeType >::ValueType & itk::LevelOrderTreeIterator< TTreeType >::Next  )  [protected, virtual]
 

Return the next node

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 166 of file itkLevelOrderTreeIterator.h.

template<class TTreeType>
Self& itk::LevelOrderTreeIterator< TTreeType >::operator= Superclass iterator  )  [inline]
 

operator =

Definition at line 60 of file itkLevelOrderTreeIterator.h.

References itk::LevelOrderTreeIterator< TTreeType >::m_EndLevel, itk::LevelOrderTreeIterator< TTreeType >::m_Queue, and itk::LevelOrderTreeIterator< TTreeType >::m_StartLevel.


The documentation for this class was generated from the following file:
Generated at Thu May 25 01:35:56 2006 for ITK by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2000