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

Forward iterator for NCollection_FlatMap. More...

#include <NCollection_FlatMap.hxx>

Public Member Functions

 Iterator () noexcept
 Empty constructor.
 
 Iterator (const NCollection_FlatMap &theMap) noexcept
 Constructor from map.
 
bool More () const noexcept
 Check if there are more elements.
 
void Next () noexcept
 Move to next element.
 
const TheKeyTypeKey () const
 Get current key.
 
const TheKeyTypeValue () const
 Get current value (alias for Key for compatibility)
 
bool IsEqual (const Iterator &theOther) const noexcept
 Performs comparison of two iterators.
 

Detailed Description

template<class TheKeyType, class Hasher = NCollection_DefaultHasher<TheKeyType>>
class NCollection_FlatMap< TheKeyType, Hasher >::Iterator

Forward iterator for NCollection_FlatMap.

Constructor & Destructor Documentation

◆ Iterator() [1/2]

template<class TheKeyType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_FlatMap< TheKeyType, Hasher >::Iterator::Iterator ( )
inlinenoexcept

Empty constructor.

◆ Iterator() [2/2]

template<class TheKeyType , class Hasher = NCollection_DefaultHasher<TheKeyType>>
NCollection_FlatMap< TheKeyType, Hasher >::Iterator::Iterator ( const NCollection_FlatMap & theMap)
inlinenoexcept

Constructor from map.

Member Function Documentation

◆ IsEqual()

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

Performs comparison of two iterators.

◆ Key()

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

Get current key.

◆ More()

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

Check if there are more elements.

◆ Next()

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

Move to next element.

◆ Value()

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

Get current value (alias for Key for compatibility)


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