ITK  5.2.0
Insight 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:

Public Types

using difference_type = typename VectorIterator::difference_type
 
using iterator_category = typename VectorIterator::iterator_category
 
using pointer = typename VectorIterator::pointer
 
using reference = typename VectorIterator::reference
 
using value_type = typename VectorIterator::value_type
 

Public Member Functions

ElementIdentifier Index () const
 
 Iterator ()
 
 Iterator (size_type d, const VectorIterator &i)
 
bool operator!= (const ConstIterator &r) const
 
bool operator!= (const Iterator &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 ConstIterator &r) const
 
bool operator== (const Iterator &r) const
 
bool operator> (const Iterator &r) const
 
bool operator>= (const Iterator &r) const
 
reference Value () const
 

Private Attributes

VectorIterator m_Iter
 
size_type m_Pos
 

Friends

class ConstIterator
 

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

Member Typedef Documentation

◆ difference_type

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

Definition at line 185 of file itkVectorContainer.h.

◆ iterator_category

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

Definition at line 183 of file itkVectorContainer.h.

◆ pointer

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

Definition at line 186 of file itkVectorContainer.h.

◆ reference

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

Definition at line 187 of file itkVectorContainer.h.

◆ value_type

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

Definition at line 184 of file itkVectorContainer.h.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

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

Definition at line 189 of file itkVectorContainer.h.

◆ Iterator() [2/2]

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

Definition at line 192 of file itkVectorContainer.h.

Member Function Documentation

◆ Index()

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

Get the index into the VectorContainer associated with this iterator.

Definition at line 287 of file itkVectorContainer.h.

◆ operator!=() [1/2]

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

◆ operator!=() [2/2]

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

◆ operator*()

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

Definition at line 196 of file itkVectorContainer.h.

◆ operator++() [1/2]

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

Definition at line 199 of file itkVectorContainer.h.

◆ operator++() [2/2]

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

Definition at line 206 of file itkVectorContainer.h.

◆ operator+=()

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

Definition at line 277 of file itkVectorContainer.h.

◆ operator-()

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

◆ operator--() [1/2]

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

Definition at line 214 of file itkVectorContainer.h.

◆ operator--() [2/2]

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

Definition at line 221 of file itkVectorContainer.h.

◆ operator->()

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

Definition at line 197 of file itkVectorContainer.h.

◆ operator<()

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

Definition at line 256 of file itkVectorContainer.h.

◆ operator<=()

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

Definition at line 271 of file itkVectorContainer.h.

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ operator>()

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

Definition at line 261 of file itkVectorContainer.h.

◆ operator>=()

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

Definition at line 266 of file itkVectorContainer.h.

◆ Value()

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

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

Definition at line 294 of file itkVectorContainer.h.

Friends And Related Function Documentation

◆ ConstIterator

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

Definition at line 302 of file itkVectorContainer.h.

Member Data Documentation

◆ m_Iter

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

◆ m_Pos

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: