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

#include <itkVectorContainer.h>

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

Detailed Description

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

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

Definition at line 201 of file itkVectorContainer.h.

Public Member Functions

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

Private Attributes

VectorConstIterator m_Iter
 
size_type m_Pos
 

Friends

class Iterator
 

Constructor & Destructor Documentation

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

Definition at line 204 of file itkVectorContainer.h.

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

Definition at line 205 of file itkVectorContainer.h.

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

Member Function Documentation

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

Get the index into the VectorContainer associated with this iterator.

Definition at line 221 of file itkVectorContainer.h.

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

Definition at line 207 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
ConstIterator& itk::VectorContainer< TElementIdentifier, TElement >::ConstIterator::operator++ ( )
inline

Definition at line 209 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
ConstIterator itk::VectorContainer< TElementIdentifier, TElement >::ConstIterator::operator++ ( int  )
inline

Definition at line 210 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
ConstIterator& itk::VectorContainer< TElementIdentifier, TElement >::ConstIterator::operator-- ( )
inline

Definition at line 211 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
ConstIterator itk::VectorContainer< TElementIdentifier, TElement >::ConstIterator::operator-- ( int  )
inline

Definition at line 212 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
ConstIterator* itk::VectorContainer< TElementIdentifier, TElement >::ConstIterator::operator-> ( )
inline

Definition at line 208 of file itkVectorContainer.h.

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

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

Definition at line 224 of file itkVectorContainer.h.

Friends And Related Function Documentation

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

Definition at line 229 of file itkVectorContainer.h.

Member Data Documentation

template<typename TElementIdentifier, typename TElement>
VectorConstIterator itk::VectorContainer< TElementIdentifier, TElement >::ConstIterator::m_Iter
private
template<typename TElementIdentifier, typename TElement>
size_type itk::VectorContainer< TElementIdentifier, TElement >::ConstIterator::m_Pos
private

Definition at line 227 of file itkVectorContainer.h.


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