ITK  4.13.0
Insight Segmentation and Registration Toolkit
Public Types | 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 Types

typedef
VectorIterator::difference_type 
difference_type
 
typedef
VectorIterator::iterator_category 
iterator_category
 
typedef VectorIterator::pointer pointer
 
typedef VectorIterator::reference reference
 
typedef VectorIterator::value_type value_type
 

Public Member Functions

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

Private Attributes

VectorIterator m_Iter
 
size_type m_Pos
 

Friends

class ConstIterator
 

Member Typedef Documentation

template<typename TElementIdentifier, typename TElement>
typedef VectorIterator::difference_type itk::VectorContainer< TElementIdentifier, TElement >::Iterator::difference_type

Definition at line 172 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
typedef VectorIterator::iterator_category itk::VectorContainer< TElementIdentifier, TElement >::Iterator::iterator_category

Definition at line 170 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
typedef VectorIterator::pointer itk::VectorContainer< TElementIdentifier, TElement >::Iterator::pointer

Definition at line 173 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
typedef VectorIterator::reference itk::VectorContainer< TElementIdentifier, TElement >::Iterator::reference

Definition at line 174 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
typedef VectorIterator::value_type itk::VectorContainer< TElementIdentifier, TElement >::Iterator::value_type

Definition at line 171 of file itkVectorContainer.h.

Constructor & Destructor Documentation

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

Definition at line 176 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 177 of file itkVectorContainer.h.

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

Definition at line 178 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 201 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>
Iterator& itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator* ( )
inline

Definition at line 179 of file itkVectorContainer.h.

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

Definition at line 181 of file itkVectorContainer.h.

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

Definition at line 182 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
Iterator& itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator+= ( difference_type  n)
inline

Definition at line 197 of file itkVectorContainer.h.

template<typename TElementIdentifier, typename TElement>
difference_type itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator- ( const Iterator r) const
inline
template<typename TElementIdentifier, typename TElement>
Iterator& itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator-- ( )
inline

Definition at line 183 of file itkVectorContainer.h.

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

Definition at line 184 of file itkVectorContainer.h.

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

Definition at line 180 of file itkVectorContainer.h.

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

Definition at line 192 of file itkVectorContainer.h.

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

Definition at line 195 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>
bool itk::VectorContainer< TElementIdentifier, TElement >::Iterator::operator> ( const Iterator r) const
inline

Definition at line 193 of file itkVectorContainer.h.

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

Definition at line 194 of file itkVectorContainer.h.

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 204 of file itkVectorContainer.h.

Friends And Related Function Documentation

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

Definition at line 209 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: