Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor > Class Template Reference

Generic forward iterator for View classes. More...

#include <NCollection_ItemsView.hxx>

Public Types

using iterator_category = std::forward_iterator_tag
using value_type = RefType
using difference_type = std::ptrdiff_t
using pointer = void
using reference = RefType

Public Member Functions

 Iterator ()=default
 Default constructor (creates end iterator)
template<class MapType>
 Iterator (const MapType &theMap)
 Constructor from map.
RefType operator* () const
 Dereference operator.
Iterator & operator++ ()
 Prefix increment.
Iterator operator++ (int)
 Postfix increment.
bool operator== (const Iterator &theOther) const
 Equality comparison.
bool operator!= (const Iterator &theOther) const
 Inequality comparison.

Detailed Description

template<class BaseIterator, class RefType, class Extractor>
class NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >

Generic forward iterator for View classes.

Template Parameters
BaseIteratorthe map's native Iterator type
RefTypethe reference type returned by operator*
Extractorfunctor class with static Extract(iter) returning RefType

Member Typedef Documentation

◆ difference_type

template<class BaseIterator, class RefType, class Extractor>
using NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::difference_type = std::ptrdiff_t

◆ iterator_category

template<class BaseIterator, class RefType, class Extractor>
using NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::iterator_category = std::forward_iterator_tag

◆ pointer

template<class BaseIterator, class RefType, class Extractor>
using NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::pointer = void

◆ reference

template<class BaseIterator, class RefType, class Extractor>
using NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::reference = RefType

◆ value_type

template<class BaseIterator, class RefType, class Extractor>
using NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::value_type = RefType

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<class BaseIterator, class RefType, class Extractor>
NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::Iterator ( )
default

Default constructor (creates end iterator)

◆ Iterator() [2/2]

template<class BaseIterator, class RefType, class Extractor>
template<class MapType>
NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::Iterator ( const MapType & theMap)
inlineexplicit

Constructor from map.

Member Function Documentation

◆ operator!=()

template<class BaseIterator, class RefType, class Extractor>
bool NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::operator!= ( const Iterator< BaseIterator, RefType, Extractor > & theOther) const
inline

Inequality comparison.

◆ operator*()

template<class BaseIterator, class RefType, class Extractor>
RefType NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::operator* ( ) const
inline

Dereference operator.

◆ operator++() [1/2]

template<class BaseIterator, class RefType, class Extractor>
Iterator & NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::operator++ ( )
inline

Prefix increment.

◆ operator++() [2/2]

template<class BaseIterator, class RefType, class Extractor>
Iterator NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::operator++ ( int )
inline

Postfix increment.

◆ operator==()

template<class BaseIterator, class RefType, class Extractor>
bool NCollection_ItemsView::Iterator< BaseIterator, RefType, Extractor >::operator== ( const Iterator< BaseIterator, RefType, Extractor > & theOther) const
inline

Equality comparison.


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