Forward iterator with const access. More...
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | difference_type = this_type::difference_type |
using | key_type = this_type::key_type |
using | mapped_type = const this_type::mapped_type |
using | value_type = const this_type::value_type |
using | pointer = this_type::const_pointer |
using | reference = this_type::const_reference |
![]() | |
using | iterator_category = std::forward_iterator_tag |
using | difference_type = this_type::difference_type |
using | table_type = typename std::conditional< Const, const this_type, this_type >::type |
The HashTable container type. More... | |
using | node_type = typename std::conditional< Const, const this_type::node_type, this_type::node_type >::type |
The node-type being addressed. More... | |
using | key_type = this_type::key_type |
The key type. More... | |
using | mapped_type = typename std::conditional< Const, const this_type::mapped_type, this_type::mapped_type >::type |
The object type being addressed. More... | |
Public Member Functions | |
const_iterator ()=default | |
Default construct (end iterator) More... | |
const_iterator (const const_iterator &)=default | |
Copy construct. More... | |
const_iterator & | operator= (const const_iterator &)=default |
Copy assignment. More... | |
template<bool Any> | |
const_iterator (const Iterator< Any > &iter) | |
Copy construct from any access type. More... | |
const_iterator (const iterator &iter) | |
Implicit conversion from dissimilar access type. More... | |
reference | val () const |
Const access to referenced object (value) More... | |
reference | operator* () const |
Const access to referenced object (value) More... | |
reference | operator() () const |
const_iterator & | operator++ () |
const_iterator | operator++ (int) |
const_iterator & | operator= (const iterator &iter) |
![]() | |
bool | good () const noexcept |
True if iterator points to an entry. More... | |
bool | found () const noexcept |
True if iterator points to an entry - same as good() More... | |
const Key & | key () const |
The key associated with the iterator. More... | |
Ostream & | print (Ostream &os) const |
Write the (key, val) pair. More... | |
operator bool () const noexcept | |
True if iterator points to an entry. More... | |
bool | operator== (const Iterator< Any > &iter) const noexcept |
Compare hash-entry element pointers. More... | |
bool | operator!= (const Iterator< Any > &iter) const noexcept |
Additional Inherited Members | |
![]() | |
constexpr | Iterator () noexcept |
Default construct (end iterator) More... | |
Iterator (table_type *tbl) | |
Construct from begin of hash-table. More... | |
Iterator (table_type *tbl, const Key &key) | |
Construct by finding key in hash table. More... | |
void | increment () |
Increment to the next position. More... | |
operator const Iterator< Any > & () const | |
Permit explicit cast to the other (const/non-const) iterator. More... | |
![]() | |
node_type * | entry_ |
The selected entry. More... | |
table_type * | container_ |
The hash-table container being iterated on. More... | |
label | index_ |
Index within the hash-table data. More... | |
Forward iterator with const access.
Definition at line 754 of file HashTable.H.
using iterator_category = std::forward_iterator_tag |
Definition at line 761 of file HashTable.H.
Definition at line 762 of file HashTable.H.
using key_type = this_type::key_type |
Definition at line 764 of file HashTable.H.
using mapped_type = const this_type::mapped_type |
Definition at line 765 of file HashTable.H.
using value_type = const this_type::value_type |
Definition at line 766 of file HashTable.H.
using pointer = this_type::const_pointer |
Definition at line 767 of file HashTable.H.
using reference = this_type::const_reference |
Definition at line 768 of file HashTable.H.
|
default |
Default construct (end iterator)
|
default |
Copy construct.
|
inline |
Copy construct from any access type.
Definition at line 787 of file HashTable.H.
|
inline |
Implicit conversion from dissimilar access type.
Definition at line 793 of file HashTable.H.
|
default |
Copy assignment.
|
inline |
Const access to referenced object (value)
Definition at line 802 of file HashTable.H.
Referenced by HashTable< T, Key, Hash >::const_iterator::operator()(), and HashTable< T, Key, Hash >::const_iterator::operator*().
Const access to referenced object (value)
Definition at line 808 of file HashTable.H.
References HashTable< T, Key, Hash >::const_iterator::val().
Definition at line 809 of file HashTable.H.
References HashTable< T, Key, Hash >::const_iterator::val().
|
inline |
Definition at line 211 of file HashTableIterI.H.
|
inline |
Definition at line 220 of file HashTableIterI.H.
|
inline |
Definition at line 818 of file HashTable.H.