Internal storage type for HashTable entries. More...
#include <HashTableDetail.H>

Public Types | |
| typedef K | key_type |
| Type of key. | |
| typedef V | mapped_type |
| Type of content. | |
Public Member Functions | |
| HashTablePair (const HashTablePair &)=delete | |
| No copy construct. | |
| void | operator= (const HashTablePair &)=delete |
| No copy assignment. | |
| template<class... Args> | |
| HashTablePair (HashTablePair *next, const key_type &key, Args &&... args) | |
| Construct from next pointer, key, contents. | |
| const key_type & | key () const noexcept |
| The key. | |
| const mapped_type & | cval () const noexcept |
| Const access to the mapped value. | |
| const mapped_type & | val () const noexcept |
| Const access to the mapped value. | |
| mapped_type & | val () noexcept |
| Non-const access to the mapped value. | |
| bool | operator< (const HashTablePair &rhs) const |
| Compare keys. | |
| void | print (Ostream &os) const |
| Write (key, val) pair. | |
Static Public Member Functions | |
| static constexpr bool | stores_value () noexcept |
| This class stores a value. | |
Public Attributes | |
| const K | key_ |
| The lookup key. | |
| V | val_ |
| The mapped data. | |
| HashTablePair * | next_ |
| Addressing (next in collision list). | |
Internal storage type for HashTable entries.
Internal storage type for HashTable.
Comprises a (K,V) tuple and a linked-list entry for hash collisions. Could store key/val as std::pair, but no particular advantage unless the iterator dereference type changes.
Definition at line 84 of file HashTableDetail.H.
Type of key.
Definition at line 91 of file HashTableDetail.H.
| typedef V mapped_type |
Type of content.
Definition at line 96 of file HashTableDetail.H.
No copy construct.
References HashTablePair().
Referenced by HashTablePair(), HashTablePair(), operator<(), and operator=().


|
inline |
Construct from next pointer, key, contents.
Definition at line 144 of file HashTableDetail.H.
References args, HashTablePair(), key(), key_, next_, and val_.

|
inlinestaticconstexprnoexcept |
This class stores a value.
Definition at line 101 of file HashTableDetail.H.
References Foam::noexcept.
|
delete |
The key.
Definition at line 162 of file HashTableDetail.H.
References key_, and Foam::noexcept.
Referenced by HashTablePair().

|
inlinenoexcept |
Const access to the mapped value.
Definition at line 170 of file HashTableDetail.H.
References Foam::noexcept, and val_.
|
inlinenoexcept |
Const access to the mapped value.
Definition at line 178 of file HashTableDetail.H.
References Foam::noexcept, and val_.
|
inlinenoexcept |
Non-const access to the mapped value.
Definition at line 186 of file HashTableDetail.H.
References Foam::noexcept, and val_.
|
inline |
Compare keys.
Definition at line 195 of file HashTableDetail.H.
References HashTablePair(), key_, and Foam::rhs().

Write (key, val) pair.
Definition at line 203 of file HashTableDetail.H.
References key_, os(), and val_.

The lookup key.
Definition at line 112 of file HashTableDetail.H.
Referenced by HashTablePair(), key(), operator<(), and print().
| V val_ |
The mapped data.
Definition at line 117 of file HashTableDetail.H.
Referenced by cval(), HashTablePair(), print(), val(), and val().
| HashTablePair* next_ |
Addressing (next in collision list).
Definition at line 122 of file HashTableDetail.H.
Referenced by HashTablePair().