Forward iterator with const access. More...
#include <HashTable.H>


Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | difference_type = this_type::difference_type |
| using | node_type = this_type::node_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 |
| Public Types inherited from HashTable< T, Key, Hash >::Iterator< true > | |
| using | iterator_category |
| using | difference_type |
| using | table_type |
| The HashTable container type. | |
| using | node_type |
| The node-type being addressed. | |
| using | key_type |
| The key type. | |
| using | mapped_type |
| The object type being addressed. | |
Public Member Functions | |
| const_iterator ()=default | |
| Default construct (end iterator). | |
| const_iterator (const const_iterator &)=default | |
| Copy construct. | |
| const_iterator & | operator= (const const_iterator &)=default |
| Copy assignment. | |
| template<bool Any> | |
| const_iterator (const Iterator< Any > &iter) | |
| Copy construct from any access type. | |
| const_iterator (const iterator &iter) | |
| Implicit conversion from dissimilar access type. | |
| const node_type * | node () const noexcept |
| Const access to the entry (node). | |
| reference | val () const |
| Const access to referenced object (value). | |
| reference | operator* () const |
| Const access to referenced object (value). | |
| reference | operator() () const |
| const_iterator & | operator++ () |
| const_iterator | operator++ (int) |
| const_iterator & | operator= (const iterator &iter) |
| Public Member Functions inherited from HashTable< T, Key, Hash >::Iterator< true > | |
| bool | good () const noexcept |
| True if iterator points to an entry. | |
| bool | found () const noexcept |
| True if iterator points to an entry - same as good(). | |
| const Key & | key () const |
| The key associated with the iterator. | |
| Ostream & | print (Ostream &os) const |
| Write the (key, val) pair. | |
| operator bool () const noexcept | |
| True if iterator points to an entry. | |
| bool | operator== (const Iterator< Any > &iter) const noexcept |
| Compare hash-entry element pointers. | |
| bool | operator!= (const Iterator< Any > &iter) const noexcept |
Additional Inherited Members | |
| Protected Member Functions inherited from HashTable< T, Key, Hash >::Iterator< true > | |
| constexpr | Iterator () noexcept |
| Default construct. Also the same as the end iterator. | |
| void | increment () |
| Increment to the next position. | |
| operator const Iterator< Any > & () const | |
| Permit explicit cast to the other (const/non-const) iterator. | |
| Protected Attributes inherited from HashTable< T, Key, Hash >::Iterator< true > | |
| node_type * | entry_ |
| The selected entry. | |
| table_type * | container_ |
| The hash-table container being iterated on. | |
| label | index_ |
| Index within the hash-table data. | |
Forward iterator with const access.
Definition at line 1132 of file HashTable.H.
| using iterator_category = std::forward_iterator_tag |
Definition at line 1139 of file HashTable.H.
Definition at line 1140 of file HashTable.H.
| using node_type = this_type::node_type |
Definition at line 1142 of file HashTable.H.
| using key_type = this_type::key_type |
Definition at line 1143 of file HashTable.H.
| using mapped_type = const this_type::mapped_type |
Definition at line 1144 of file HashTable.H.
| using value_type = const this_type::value_type |
Definition at line 1145 of file HashTable.H.
| using pointer = this_type::const_pointer |
Definition at line 1146 of file HashTable.H.
| using reference = this_type::const_reference |
Definition at line 1147 of file HashTable.H.
Default construct (end iterator).
Referenced by const_iterator(), const_iterator(), operator++(), operator=(), and operator=().

|
default |
|
inline |
Copy construct from any access type.
Definition at line 1174 of file HashTable.H.
References HashTable< T, Key, Hash >::Iterator< true >::Iterator().

|
inline |
Implicit conversion from dissimilar access type.
Definition at line 1182 of file HashTable.H.
References const_iterator().

|
default |
|
inlinenoexcept |
Const access to the entry (node).
Definition at line 1193 of file HashTable.H.
References HashTable< T, Key, Hash >::Iterator< Const >::entry_, and Foam::noexcept.
Const access to referenced object (value).
Definition at line 1201 of file HashTable.H.
References HashTable< T, Key, Hash >::Iterator< Const >::entry_.
Referenced by HashTable< T, Key, Hash >::at(), HashTable< T, Key, Hash >::lookup(), operator()(), operator*(), and HashTable< T, Key, Hash >::operator==().

Const access to referenced object (value).
Definition at line 1209 of file HashTable.H.
References val().

Definition at line 1210 of file HashTable.H.
References val().

|
inline |
Definition at line 146 of file HashTableIterI.H.
References HashTable< T, Key, Hash >::Iterator< true >::increment().

|
inline |
Definition at line 155 of file HashTableIterI.H.
References const_iterator(), and HashTable< T, Key, Hash >::Iterator< true >::increment().

|
inline |
Definition at line 1219 of file HashTable.H.
References const_iterator().
