Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator Class Reference

Implementation of the Iterator interface. More...

#include <NCollection_IndexedDataMap.hxx>

Public Member Functions

 Iterator ()
 Empty constructor.
 
 Iterator (const NCollection_IndexedDataMap &theMap)
 Constructor.
 
bool More () const noexcept
 Query if the end of collection is reached by iterator.
 
void Next () noexcept
 Make a step along the collection.
 
const TheItemTypeValue () const
 Value access.
 
TheItemTypeChangeValue () const
 ChangeValue access.
 
const TheKeyTypeKey () const
 Key.
 
bool IsEqual (const Iterator &theOther) const noexcept
 Performs comparison of two iterators.
 
int Index () const noexcept
 Returns current index (1-based).
 

Detailed Description

template<class TheKeyType, class TheItemType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
class NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator

Implementation of the Iterator interface.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::Iterator ( )
inline

Empty constructor.

◆ Iterator() [2/2]

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::Iterator ( const NCollection_IndexedDataMap & theMap)
inline

Constructor.

Member Function Documentation

◆ ChangeValue()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
TheItemType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::ChangeValue ( ) const
inline

ChangeValue access.

◆ Index()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
int NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::Index ( ) const
inlinenoexcept

Returns current index (1-based).

◆ IsEqual()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
bool NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::IsEqual ( const Iterator & theOther) const
inlinenoexcept

Performs comparison of two iterators.

◆ Key()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const TheKeyType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::Key ( ) const
inline

Key.

◆ More()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
bool NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::More ( ) const
inlinenoexcept

Query if the end of collection is reached by iterator.

◆ Next()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
void NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::Next ( )
inlinenoexcept

Make a step along the collection.

◆ Value()

template<class TheKeyType , class TheItemType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
const TheItemType & NCollection_IndexedDataMap< TheKeyType, TheItemType, Hasher >::Iterator::Value ( ) const
inline

Value access.


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