Forward iterator with non-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 = this_type::mapped_type |
using | value_type = this_type::value_type |
using | pointer = this_type::pointer |
using | reference = this_type::reference |
using | const_pointer = this_type::const_pointer |
using | const_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 | |
iterator ()=default | |
Default construct (end iterator) More... | |
iterator (const Iterator< false > &iter) | |
Copy construct from similar access type. More... | |
const_reference | val () const |
Const access to referenced object (value) More... | |
reference | val () |
Non-const access to referenced object (value) More... | |
const_reference | operator* () const |
Const access to referenced object (value) More... | |
const_reference | operator() () const |
reference | operator* () |
Non-const access to referenced object (value) More... | |
reference | operator() () |
iterator & | operator++ () |
iterator | operator++ (int) |
![]() | |
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 non-const access.
Definition at line 693 of file HashTable.H.
using iterator_category = std::forward_iterator_tag |
Definition at line 700 of file HashTable.H.
Definition at line 701 of file HashTable.H.
using key_type = this_type::key_type |
Definition at line 703 of file HashTable.H.
using mapped_type = this_type::mapped_type |
Definition at line 704 of file HashTable.H.
using value_type = this_type::value_type |
Definition at line 705 of file HashTable.H.
using pointer = this_type::pointer |
Definition at line 706 of file HashTable.H.
using reference = this_type::reference |
Definition at line 707 of file HashTable.H.
using const_pointer = this_type::const_pointer |
Definition at line 708 of file HashTable.H.
using const_reference = this_type::const_reference |
Definition at line 709 of file HashTable.H.
|
default |
Default construct (end iterator)
Copy construct from similar access type.
Definition at line 718 of file HashTable.H.
|
inline |
Const access to referenced object (value)
Definition at line 727 of file HashTable.H.
Referenced by HashTable< T, Key, Hash >::iterator::operator()(), and HashTable< T, Key, Hash >::iterator::operator*().
|
inline |
Non-const access to referenced object (value)
Definition at line 733 of file HashTable.H.
|
inline |
Const access to referenced object (value)
Definition at line 739 of file HashTable.H.
References HashTable< T, Key, Hash >::iterator::val().
|
inline |
Definition at line 740 of file HashTable.H.
References HashTable< T, Key, Hash >::iterator::val().
Non-const access to referenced object (value)
Definition at line 743 of file HashTable.H.
References HashTable< T, Key, Hash >::iterator::val().
Definition at line 744 of file HashTable.H.
References HashTable< T, Key, Hash >::iterator::val().
|
inline |
Definition at line 190 of file HashTableIterI.H.
References HashTable< T, Key, Hash >::Iterator< false >::increment().
|
inline |
Definition at line 199 of file HashTableIterI.H.