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

itk::LeafTreeIterator< TTreeType > Class Template Reference

#include <itkLeafTreeIterator.h>

Inheritance diagram for itk::LeafTreeIterator< TTreeType >:

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

Collaboration graph
[legend]

List of all members.

Public Types

enum  

Public Member Functions

virtual bool Add (TTreeType &subTree)
virtual bool Add (int position, ValueType element)
virtual bool Add (ValueType element)
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
const TreeNodeTypeGetParent () const
virtual TTreeType * GetSubTree () const
TTreeType * GetTree () const
int GetType () const
void GoToBegin ()
virtual bool GoToChild (int 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
 LeafTreeIterator (TreeType *tree)
 LeafTreeIterator (const TreeType *tree)
void operator++ (int)
Selfoperator++ ()
virtual TreeIteratorBase
< TTreeType > * 
Parents ()
bool Remove ()
virtual bool RemoveChild (int number)
void Set (ValueType element)
virtual ~LeafTreeIterator ()
virtual const TreeNodeTypeGetNode () const
virtual TreeNodeTypeGetNode ()
const TreeNodeTypeGetRoot () const
TreeNodeTypeGetRoot ()

Protected Member Functions

bool HasNext () const
const ValueTypeNext ()

Protected Attributes

TreeNodeTypem_Begin
TreeNodeTypem_End
TreeNodeTypem_Position
const TreeNodeTypem_Root
TTreeType * m_Tree
TreeIteratorBase< TTreeType > * Clone ()


Detailed Description

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

Definition at line 26 of file itkLeafTreeIterator.h.


Member Typedef Documentation

template<class TTreeType>
typedef LeafTreeIterator itk::LeafTreeIterator< TTreeType >::Self

Typedefs

Reimplemented from itk::TreeIteratorBase< TTreeType >.

Definition at line 31 of file itkLeafTreeIterator.h.

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

Definition at line 32 of file itkLeafTreeIterator.h.

template<class TTreeType>
typedef TreeNode<ValueType> itk::LeafTreeIterator< TTreeType >::TreeNodeType

Reimplemented from itk::TreeIteratorBase< TTreeType >.

Definition at line 35 of file itkLeafTreeIterator.h.

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

Definition at line 33 of file itkLeafTreeIterator.h.

template<class TTreeType>
typedef TreeType::ValueType itk::LeafTreeIterator< TTreeType >::ValueType

Reimplemented from itk::TreeIteratorBase< TTreeType >.

Definition at line 34 of file itkLeafTreeIterator.h.


Member Enumeration Documentation

anonymous enum [inherited]

Enumerations

Definition at line 162 of file itkTreeIteratorBase.h.


Constructor & Destructor Documentation

template<class TTreeType >
itk::LeafTreeIterator< TTreeType >::LeafTreeIterator ( const TreeType tree  )  [inline]

Constructor

Definition at line 69 of file itkLeafTreeIterator.h.

References itk::TreeIteratorBase< TTreeType >::m_Begin.

template<class TTreeType >
itk::LeafTreeIterator< TTreeType >::LeafTreeIterator ( TreeType tree  )  [inline]

Constructor

Definition at line 77 of file itkLeafTreeIterator.h.

References itk::TreeIteratorBase< TTreeType >::m_Begin.

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

Destructor

Definition at line 85 of file itkLeafTreeIterator.h.


Member Function Documentation

virtual bool itk::TreeIteratorBase< TTreeType >::Add ( TTreeType &  subTree  )  [virtual, inherited]

Add a subtree

virtual bool itk::TreeIteratorBase< TTreeType >::Add ( int  position,
ValueType  element 
) [virtual, inherited]

Add an element at a given position

virtual bool itk::TreeIteratorBase< TTreeType >::Add ( ValueType  element  )  [virtual, inherited]

Add an element to the tree

virtual int itk::TreeIteratorBase< TTreeType >::ChildPosition ( ValueType  element  )  const [virtual, inherited]

Return the current ChildPosition of an element

virtual TreeIteratorBase<TTreeType >* itk::TreeIteratorBase< TTreeType >::Children (  )  [virtual, inherited]

Return a list of children

template<class TTreeType >
TreeIteratorBase< TTreeType > * itk::LeafTreeIterator< TTreeType >::Clone (  )  [inline, virtual]

Clone function

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 154 of file itkLeafTreeIterator.h.

References itk::TreeIteratorBase< TTreeType >::m_Tree.

virtual int itk::TreeIteratorBase< TTreeType >::Count (  )  [virtual, inherited]

Count the number of nodes

virtual int itk::TreeIteratorBase< TTreeType >::CountChildren (  )  const [virtual, inherited]

Count the number of children

Referenced by itk::ChildTreeIterator< TTreeType >::HasNext().

virtual bool itk::TreeIteratorBase< TTreeType >::Disconnect (  )  [virtual, inherited]

Disconnect the tree

virtual const ValueType& itk::TreeIteratorBase< TTreeType >::Get ( void   )  const [virtual, inherited]

Get a value

virtual TreeIteratorBase<TTreeType >* itk::TreeIteratorBase< TTreeType >::GetChild ( int  number  )  const [virtual, inherited]

Return a list of child

virtual const TreeNodeType* itk::TreeIteratorBase< TTreeType >::GetNode (  )  const [virtual, inherited]

Get the current node

virtual TreeNodeType* itk::TreeIteratorBase< TTreeType >::GetNode (  )  [virtual, inherited]

Get the current node

const TreeNodeType* itk::TreeIteratorBase< TTreeType >::GetParent ( void   )  const [inherited]

Return the first parent found

const TreeNodeType* itk::TreeIteratorBase< TTreeType >::GetRoot (  )  const [inherited]

Get the root

TreeNodeType* itk::TreeIteratorBase< TTreeType >::GetRoot (  )  [inherited]

Get the root

virtual TTreeType * itk::TreeIteratorBase< TTreeType >::GetSubTree (  )  const [virtual, inherited]

Get the subtree

TTreeType * itk::TreeIteratorBase< TTreeType >::GetTree (  )  const [inherited]

Get the tree

template<class TTreeType >
int itk::LeafTreeIterator< TTreeType >::GetType ( void   )  const [inline, virtual]

Return the type of iterator

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 91 of file itkLeafTreeIterator.h.

void itk::TreeIteratorBase< TTreeType >::GoToBegin ( void   )  [inline, inherited]

Move an iterator to the beginning of the tree

Definition at line 134 of file itkTreeIteratorBase.h.

References itk::TreeIteratorBase< TTreeType >::m_Begin, and itk::TreeIteratorBase< TTreeType >::m_Position.

virtual bool itk::TreeIteratorBase< TTreeType >::GoToChild ( int  number = 0  )  [virtual, inherited]

Go to the specified child

Reimplemented in itk::ChildTreeIterator< TTreeType >.

void itk::TreeIteratorBase< TTreeType >::GoToEnd ( void   )  [inline, inherited]

Move an iterator to the end of the tree.

Definition at line 140 of file itkTreeIteratorBase.h.

References itk::TreeIteratorBase< TTreeType >::m_End, and itk::TreeIteratorBase< TTreeType >::m_Position.

virtual bool itk::TreeIteratorBase< TTreeType >::GoToParent (  )  [virtual, inherited]

Go to the parent

Reimplemented in itk::ChildTreeIterator< TTreeType >.

virtual bool itk::TreeIteratorBase< TTreeType >::HasChild ( int  number = 0  )  const [virtual, inherited]

Return true if the current node has a child

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

Return true if the next value exists

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 98 of file itkLeafTreeIterator.h.

References itk::TreeIteratorBase< TTreeType >::m_Position, and NULL.

virtual bool itk::TreeIteratorBase< TTreeType >::HasParent ( void   )  const [virtual, inherited]

Return true if the current node has a parent

bool itk::TreeIteratorBase< TTreeType >::IsAtBegin ( void   )  const [inline, inherited]

Is the iterator at the beginning of the tree?

Definition at line 146 of file itkTreeIteratorBase.h.

References itk::TreeIteratorBase< TTreeType >::m_Begin, and itk::TreeIteratorBase< TTreeType >::m_Position.

bool itk::TreeIteratorBase< TTreeType >::IsAtEnd ( void   )  const [inline, inherited]

Is the iterator at the end of the tree?. The iterator is at the end if it points to NULL

Definition at line 153 of file itkTreeIteratorBase.h.

References itk::TreeIteratorBase< TTreeType >::m_End, and itk::TreeIteratorBase< TTreeType >::m_Position.

virtual bool itk::TreeIteratorBase< TTreeType >::IsLeaf (  )  const [virtual, inherited]

Return true if the current node is a leaf

virtual bool itk::TreeIteratorBase< TTreeType >::IsRoot (  )  const [virtual, inherited]

Return true if the current node is a root

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

Return the next value

Return the next node

Implements itk::TreeIteratorBase< TTreeType >.

Definition at line 115 of file itkLeafTreeIterator.h.

References itk::TreeNode< TValueType >::Get(), and itk::TreeIteratorBase< TTreeType >::m_Position.

void itk::TreeIteratorBase< TTreeType >::operator++ ( int   )  [inline, inherited]

operator++

Definition at line 183 of file itkTreeIteratorBase.h.

References itk::TreeIteratorBase< TTreeType >::Next().

Self& itk::TreeIteratorBase< TTreeType >::operator++ (  )  [inline, inherited]

operator++

Definition at line 175 of file itkTreeIteratorBase.h.

References itk::TreeIteratorBase< TTreeType >::Next().

virtual TreeIteratorBase<TTreeType >* itk::TreeIteratorBase< TTreeType >::Parents (  )  [virtual, inherited]

Return a list of parents

bool itk::TreeIteratorBase< TTreeType >::Remove (  )  [inherited]

Remove the current node from the tree

virtual bool itk::TreeIteratorBase< TTreeType >::RemoveChild ( int  number  )  [virtual, inherited]

Remove a child

void itk::TreeIteratorBase< TTreeType >::Set ( ValueType  element  )  [inherited]

Set the current value of the node


Member Data Documentation

TreeNodeType* itk::TreeIteratorBase< TTreeType >::m_Begin [mutable, protected, inherited]

TreeNodeType* itk::TreeIteratorBase< TTreeType >::m_End [mutable, protected, inherited]

Definition at line 211 of file itkTreeIteratorBase.h.

TreeNodeType* itk::TreeIteratorBase< TTreeType >::m_Position [mutable, protected, inherited]

const TreeNodeType* itk::TreeIteratorBase< TTreeType >::m_Root [protected, inherited]

TTreeType * itk::TreeIteratorBase< TTreeType >::m_Tree [protected, inherited]


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

Generated at Tue Sep 15 10:14:35 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000