RADLib
RADical C++ application framework
RADData::RADFlatHashMap< K, V, Hash, Eq >::const_iterator Class Reference

Const forward iterator over occupied map entries. More...

#include <RADDataStructures.h>

Public Member Functions

 const_iterator (const Entry *entry, const Entry *end)
 Creates a const iterator over an entry range. More...
 
const value_typeoperator* () const
 Returns current key/value pair. More...
 
const value_typeoperator-> () const
 Returns current key/value pair pointer. More...
 
const_iteratoroperator++ ()
 Advances to the next occupied entry. More...
 
bool operator!= (const const_iterator &other) const
 Compares iterator position. More...
 

Detailed Description

template<typename K, typename V, typename Hash = std::hash<K>, typename Eq = std::equal_to<K>>
class RADData::RADFlatHashMap< K, V, Hash, Eq >::const_iterator

Const forward iterator over occupied map entries.

Constructor & Destructor Documentation

◆ const_iterator()

template<typename K , typename V , typename Hash = std::hash<K>, typename Eq = std::equal_to<K>>
RADData::RADFlatHashMap< K, V, Hash, Eq >::const_iterator::const_iterator ( const Entry *  entry,
const Entry *  end 
)
inline

Creates a const iterator over an entry range.

Member Function Documentation

◆ operator!=()

template<typename K , typename V , typename Hash = std::hash<K>, typename Eq = std::equal_to<K>>
bool RADData::RADFlatHashMap< K, V, Hash, Eq >::const_iterator::operator!= ( const const_iterator other) const
inline

Compares iterator position.

◆ operator*()

template<typename K , typename V , typename Hash = std::hash<K>, typename Eq = std::equal_to<K>>
const value_type& RADData::RADFlatHashMap< K, V, Hash, Eq >::const_iterator::operator* ( ) const
inline

Returns current key/value pair.

◆ operator++()

template<typename K , typename V , typename Hash = std::hash<K>, typename Eq = std::equal_to<K>>
const_iterator& RADData::RADFlatHashMap< K, V, Hash, Eq >::const_iterator::operator++ ( )
inline

Advances to the next occupied entry.

◆ operator->()

template<typename K , typename V , typename Hash = std::hash<K>, typename Eq = std::equal_to<K>>
const value_type* RADData::RADFlatHashMap< K, V, Hash, Eq >::const_iterator::operator-> ( ) const
inline

Returns current key/value pair pointer.


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