ITK  6.0.0
Insight Toolkit
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator Class Reference

#include <itkVectorContainer.h>

Detailed Description

template<typename TElementIdentifier, typename TElement>
class itk::detail::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 278 of file itkVectorContainer.h.

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

Public Types

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

Public Member Functions

 ConstIterator ()=default
 
 ConstIterator (const Iterator &r)
 
 ConstIterator (size_type d, const VectorConstIterator &i)
 
ElementIdentifier Index () const
 
 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (ConstIterator)
 
 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (Iterator)
 
ConstIteratoroperator* ()
 
ConstIteratoroperator++ ()
 
ConstIterator operator++ (int)
 
ConstIteratoroperator+= (difference_type n)
 
difference_type operator- (const ConstIterator &r) const
 
ConstIteratoroperator-- ()
 
ConstIterator operator-- (int)
 
ConstIteratoroperator-> ()
 
bool operator< (const ConstIterator &r) const
 
bool operator<= (const ConstIterator &r) const
 
ConstIteratoroperator= (const Iterator &r)
 
bool operator== (const ConstIterator &r) const
 
bool operator== (const Iterator &r) const
 
bool operator> (const ConstIterator &r) const
 
bool operator>= (const ConstIterator &r) const
 
const_reference Value () const
 

Private Attributes

VectorConstIterator m_Iter {}
 
size_type m_Pos {}
 

Friends

class Iterator
 

Member Typedef Documentation

◆ difference_type

template<typename TElementIdentifier , typename TElement >
using itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::difference_type = typename VectorConstIterator::difference_type

Definition at line 283 of file itkVectorContainer.h.

◆ iterator_category

template<typename TElementIdentifier , typename TElement >
using itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::iterator_category = typename VectorConstIterator::iterator_category

Definition at line 281 of file itkVectorContainer.h.

◆ pointer

template<typename TElementIdentifier , typename TElement >
using itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::pointer = typename VectorConstIterator::pointer

Definition at line 284 of file itkVectorContainer.h.

◆ reference

template<typename TElementIdentifier , typename TElement >
using itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::reference = typename VectorConstIterator::reference

Definition at line 285 of file itkVectorContainer.h.

◆ value_type

template<typename TElementIdentifier , typename TElement >
using itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::value_type = typename VectorConstIterator::value_type

Definition at line 282 of file itkVectorContainer.h.

Constructor & Destructor Documentation

◆ ConstIterator() [1/3]

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

◆ ConstIterator() [2/3]

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

Definition at line 288 of file itkVectorContainer.h.

◆ ConstIterator() [3/3]

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

Definition at line 292 of file itkVectorContainer.h.

Member Function Documentation

◆ Index()

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

Get the index into the VectorContainer associated with this iterator.

Definition at line 390 of file itkVectorContainer.h.

◆ ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION() [1/2]

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

◆ ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION() [2/2]

template<typename TElementIdentifier , typename TElement >
itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION ( Iterator  )

◆ operator*()

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

Definition at line 296 of file itkVectorContainer.h.

◆ operator++() [1/2]

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

Definition at line 299 of file itkVectorContainer.h.

◆ operator++() [2/2]

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

Definition at line 306 of file itkVectorContainer.h.

◆ operator+=()

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

Definition at line 336 of file itkVectorContainer.h.

◆ operator-()

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

◆ operator--() [1/2]

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

Definition at line 314 of file itkVectorContainer.h.

◆ operator--() [2/2]

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

Definition at line 321 of file itkVectorContainer.h.

◆ operator->()

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

Definition at line 297 of file itkVectorContainer.h.

◆ operator<()

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

Definition at line 366 of file itkVectorContainer.h.

◆ operator<=()

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

Definition at line 376 of file itkVectorContainer.h.

◆ operator=()

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

◆ operator==() [1/2]

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

◆ operator==() [2/2]

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

◆ operator>()

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

Definition at line 371 of file itkVectorContainer.h.

◆ operator>=()

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

Definition at line 381 of file itkVectorContainer.h.

◆ Value()

template<typename TElementIdentifier , typename TElement >
const_reference itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::Value ( ) const
inline

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

Definition at line 397 of file itkVectorContainer.h.

Friends And Related Function Documentation

◆ Iterator

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

Definition at line 405 of file itkVectorContainer.h.

Member Data Documentation

◆ m_Iter

template<typename TElementIdentifier , typename TElement >
VectorConstIterator itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::m_Iter {}
private

◆ m_Pos

template<typename TElementIdentifier , typename TElement >
size_type itk::detail::VectorContainer< TElementIdentifier, TElement >::ConstIterator::m_Pos {}
private

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