ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::LabelMap< TLabelObject >::ConstIterator Class Reference

#include <itkLabelMap.h>

Detailed Description

template<typename TLabelObject>
class itk::LabelMap< TLabelObject >::ConstIterator

A forward iterator over the LabelObjects of a LabelMap.

Definition at line 321 of file itkLabelMap.h.

+ Collaboration diagram for itk::LabelMap< TLabelObject >::ConstIterator:

Public Member Functions

 ConstIterator ()=default
 
 ConstIterator (const Self *lm)
 
const LabelTypeGetLabel () const
 
const LabelObjectTypeGetLabelObject () const
 
void GoToBegin ()
 
bool IsAtEnd () const
 
 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION (ConstIterator)
 
ConstIteratoroperator++ ()
 
ConstIterator operator++ (int)
 
bool operator== (const ConstIterator &iter) const
 

Private Types

using InternalIteratorType = typename std::map<LabelType, LabelObjectPointerType>::const_iterator
 

Private Attributes

InternalIteratorType m_Begin
 
InternalIteratorType m_End
 
InternalIteratorType m_Iterator
 

Member Typedef Documentation

◆ InternalIteratorType

template<typename TLabelObject>
using itk::LabelMap< TLabelObject >::ConstIterator::InternalIteratorType = typename std::map<LabelType, LabelObjectPointerType>::const_iterator
private

Definition at line 381 of file itkLabelMap.h.

Constructor & Destructor Documentation

◆ ConstIterator() [1/2]

template<typename TLabelObject>
itk::LabelMap< TLabelObject >::ConstIterator::ConstIterator ( )
default

◆ ConstIterator() [2/2]

template<typename TLabelObject>
itk::LabelMap< TLabelObject >::ConstIterator::ConstIterator ( const Self * lm)
inline

Member Function Documentation

◆ GetLabel()

template<typename TLabelObject>
const LabelType & itk::LabelMap< TLabelObject >::ConstIterator::GetLabel ( ) const
inline

Definition at line 340 of file itkLabelMap.h.

References m_Iterator.

◆ GetLabelObject()

template<typename TLabelObject>
const LabelObjectType * itk::LabelMap< TLabelObject >::ConstIterator::GetLabelObject ( ) const
inline

Definition at line 334 of file itkLabelMap.h.

References m_Iterator.

◆ GoToBegin()

template<typename TLabelObject>
void itk::LabelMap< TLabelObject >::ConstIterator::GoToBegin ( )
inline

Definition at line 369 of file itkLabelMap.h.

References m_Begin, and m_Iterator.

◆ IsAtEnd()

template<typename TLabelObject>
bool itk::LabelMap< TLabelObject >::ConstIterator::IsAtEnd ( ) const
inline

Definition at line 375 of file itkLabelMap.h.

References m_End, and m_Iterator.

◆ ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION()

template<typename TLabelObject>
itk::LabelMap< TLabelObject >::ConstIterator::ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION ( ConstIterator )

References ConstIterator().

◆ operator++() [1/2]

template<typename TLabelObject>
ConstIterator & itk::LabelMap< TLabelObject >::ConstIterator::operator++ ( )
inline

Definition at line 354 of file itkLabelMap.h.

References m_Iterator.

◆ operator++() [2/2]

template<typename TLabelObject>
ConstIterator itk::LabelMap< TLabelObject >::ConstIterator::operator++ ( int )
inline

Definition at line 346 of file itkLabelMap.h.

References ConstIterator().

◆ operator==()

template<typename TLabelObject>
bool itk::LabelMap< TLabelObject >::ConstIterator::operator== ( const ConstIterator & iter) const
inline

Definition at line 361 of file itkLabelMap.h.

References ConstIterator(), m_Begin, m_End, and m_Iterator.

Member Data Documentation

◆ m_Begin

template<typename TLabelObject>
InternalIteratorType itk::LabelMap< TLabelObject >::ConstIterator::m_Begin
private

Definition at line 383 of file itkLabelMap.h.

Referenced by ConstIterator(), GoToBegin(), and operator==().

◆ m_End

template<typename TLabelObject>
InternalIteratorType itk::LabelMap< TLabelObject >::ConstIterator::m_End
private

Definition at line 384 of file itkLabelMap.h.

Referenced by ConstIterator(), IsAtEnd(), and operator==().

◆ m_Iterator

template<typename TLabelObject>
InternalIteratorType itk::LabelMap< TLabelObject >::ConstIterator::m_Iterator
private

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