ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::DLeftHashTable< K, V, H >::const_iterator Class Reference

the iterator on the pairs, table after table and list after list More...

#include <ADS/dictionary/UniversalHashing.h>

Public types

using reference = PairRef< const K & , const V & >
 a reference to an item
using value_type = std::pair< K , V >
 the type of the items, for the standard library
using difference_type = std::ptrdiff_t
 the type of the distances between two iterators
using iterator_concept = std::forward_iterator_tag
 the concept of the iterator, for C++20
using iterator_category = std::input_iterator_tag
 the category of the iterator

Public member functions

 const_iterator (void)=default
 the end of no table
 const_iterator (const std::vector< Bucket > *T, std::size_t b)
 on the first pair from the list \( b \) of the lists \( T \)
reference operator* (void) const
 the pair
const_iterator & operator++ (void)
 to the next pair
const_iterator operator++ (int)
 to the next pair, returning the iterator before the step
bool operator== (const const_iterator &o) const
 equal on the same place of the same list

Detailed description

template<class K, class V, class H = std::hash< K >>
class ADS::DLeftHashTable< K, V, H >::const_iterator

the iterator on the pairs, table after table and list after list

Member typedef documentation

◆ difference_type

template<class K, class V, class H = std::hash< K >>
using ADS::DLeftHashTable< K, V, H >::const_iterator::difference_type = std::ptrdiff_t

the type of the distances between two iterators

◆ iterator_category

template<class K, class V, class H = std::hash< K >>
using ADS::DLeftHashTable< K, V, H >::const_iterator::iterator_category = std::input_iterator_tag

the category of the iterator

◆ iterator_concept

template<class K, class V, class H = std::hash< K >>
using ADS::DLeftHashTable< K, V, H >::const_iterator::iterator_concept = std::forward_iterator_tag

the concept of the iterator, for C++20

◆ reference

template<class K, class V, class H = std::hash< K >>
using ADS::DLeftHashTable< K, V, H >::const_iterator::reference = PairRef< const K & , const V & >

a reference to an item

◆ value_type

template<class K, class V, class H = std::hash< K >>
using ADS::DLeftHashTable< K, V, H >::const_iterator::value_type = std::pair< K , V >

the type of the items, for the standard library

Constructor and destructor documentation

◆ const_iterator() [1/2]

template<class K, class V, class H = std::hash< K >>
ADS::DLeftHashTable< K, V, H >::const_iterator::const_iterator ( void )
default

the end of no table

◆ const_iterator() [2/2]

template<class K, class V, class H = std::hash< K >>
ADS::DLeftHashTable< K, V, H >::const_iterator::const_iterator ( const std::vector< Bucket > * T,
std::size_t b )
inline

on the first pair from the list \( b \) of the lists \( T \)

Member function documentation

◆ operator*()

template<class K, class V, class H = std::hash< K >>
reference ADS::DLeftHashTable< K, V, H >::const_iterator::operator* ( void ) const
inline

the pair

◆ operator++() [1/2]

template<class K, class V, class H = std::hash< K >>
const_iterator ADS::DLeftHashTable< K, V, H >::const_iterator::operator++ ( int )
inline

to the next pair, returning the iterator before the step

◆ operator++() [2/2]

template<class K, class V, class H = std::hash< K >>
const_iterator & ADS::DLeftHashTable< K, V, H >::const_iterator::operator++ ( void )
inline

to the next pair

◆ operator==()

template<class K, class V, class H = std::hash< K >>
bool ADS::DLeftHashTable< K, V, H >::const_iterator::operator== ( const const_iterator & o) const
inline

equal on the same place of the same list


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