ITK  4.6.0
Insight Segmentation and Registration Toolkit
Public Member Functions | Private Attributes | Friends | List of all members
itk::VectorContainer< TElementIdentifier, TElement >::Iterator Class Reference

#include <itkVectorContainer.h>

+ Collaboration diagram for itk::VectorContainer< TElementIdentifier, TElement >::Iterator:

Detailed Description

template<typename TElementIdentifier, typename TElement>
class itk::VectorContainer< TElementIdentifier, TElement >::Iterator

Simulate STL-map style iteration where dereferencing the iterator gives access to both the index and the value.

Definition at line 167 of file itkVectorContainer.h.

Public Member Functions

ElementIdentifier Index (void) const
 
 Iterator ()
 
 Iterator (size_type d, const VectorIterator &i)
 
bool operator!= (const Iterator &r) const
 
bool operator!= (const ConstIterator &r) const
 
Iteratoroperator* ()
 
Iteratoroperator++ ()
 
Iterator operator++ (int)
 
Iteratoroperator-- ()
 
Iterator operator-- (int)
 
Iteratoroperator-> ()
 
bool operator== (const Iterator &r) const
 
bool operator== (const ConstIterator &r) const
 
ElementValue (void) const
 

Private Attributes

VectorIterator m_Iter
 
size_type m_Pos
 

Friends

class ConstIterator
 

Constructor & Destructor Documentation

template<typename TElementIdentifier, typename TElement>
itk::VectorContainer< TElementIdentifier, TElement >::Iterator::Iterator ( )
inline

Definition at line 170 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
itk::VectorContainer< TElementIdentifier, TElement >::Iterator::Iterator ( size_type  d,
const VectorIterator i 
)
inline

Definition at line 171 of file itkVectorContainer.h.

Member Function Documentation

template<typename TElementIdentifier, typename TElement>
ElementIdentifier itk::VectorContainer< TElementIdentifier, TElement >::Iterator::Index ( void  ) const
inline

Get the index into the VectorContainer associated with this iterator.

Definition at line 185 of file itkVectorContainer.h.

References itk::VectorContainer< TElementIdentifier, TElement >::Iterator::m_Pos.

template<typename TElementIdentifier, typename TElement>
bool itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator!= ( const Iterator r) const
inline
template<typename TElementIdentifier, typename TElement>
bool itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator!= ( const ConstIterator r) const
inline
template<typename TElementIdentifier, typename TElement>
Iterator& itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator* ( )
inline

Definition at line 172 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
Iterator& itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator++ ( )
inline
template<typename TElementIdentifier, typename TElement>
Iterator itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator++ ( int  )
inline
template<typename TElementIdentifier, typename TElement>
Iterator& itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator-- ( )
inline
template<typename TElementIdentifier, typename TElement>
Iterator itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator-- ( int  )
inline
template<typename TElementIdentifier, typename TElement>
Iterator* itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator-> ( )
inline

Definition at line 173 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
bool itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator== ( const Iterator r) const
inline
template<typename TElementIdentifier, typename TElement>
bool itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator== ( const ConstIterator r) const
inline
template<typename TElementIdentifier, typename TElement>
Element& itk::VectorContainer< TElementIdentifier, TElement >::Iterator::Value ( void  ) const
inline

Get the value at this iterator's location in the VectorContainer.

Definition at line 188 of file itkVectorContainer.h.

References itk::VectorContainer< TElementIdentifier, TElement >::Iterator::m_Iter.

Friends And Related Function Documentation

template<typename TElementIdentifier, typename TElement>
friend class ConstIterator
friend

Definition at line 193 of file itkVectorContainer.h.

Member Data Documentation

template<typename TElementIdentifier, typename TElement>
VectorIterator itk::VectorContainer< TElementIdentifier, TElement >::Iterator::m_Iter
private
template<typename TElementIdentifier, typename TElement>
size_type itk::VectorContainer< TElementIdentifier, TElement >::Iterator::m_Pos
private

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