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

Public Types | |
| typedef K | key_type |
| Type of key. | |
| typedef Foam::zero | mapped_type |
| Type of content (no content: placeholder). | |
| typedef key_type | value_type |
| Content storage type to the entry. | |
Public Member Functions | |
| HashTableSingle (const HashTableSingle &)=delete | |
| No copy construct. | |
| void | operator= (const HashTableSingle &)=delete |
| No copy assignment. | |
| template<class... Args> | |
| HashTableSingle (HashTableSingle *next, const key_type &key, Args &&...) | |
| Construct from next pointer, key, (unused) contents. | |
| const key_type & | key () const noexcept |
| The key. | |
| const mapped_type & | cval () const noexcept |
| Const access to the (dummy) mapped value (for API only). | |
| const mapped_type & | val () const noexcept |
| Const access to the (dummy) mapped value (for API only). | |
| mapped_type & | val () noexcept |
| Non-const access to the (dummy) mapped value (for API only). | |
| bool | operator< (const HashTableSingle &rhs) const |
| Compare keys. | |
| void | print (Ostream &os) const |
| Write the key. There is no value to write. | |
Static Public Member Functions | |
| static constexpr bool | stores_value () noexcept |
| This class does not store any value. | |
Public Attributes | |
| const K | key_ |
| The lookup key == content. | |
| HashTableSingle * | next_ |
| Addressing (next in collision list). | |
Internal storage type for HashSet entries.
Comprises a single (K) value and a linked-list entry for hash collisions
Definition at line 238 of file HashTableDetail.H.
Type of key.
Definition at line 245 of file HashTableDetail.H.
| typedef Foam::zero mapped_type |
Type of content (no content: placeholder).
Definition at line 250 of file HashTableDetail.H.
| typedef key_type value_type |
Content storage type to the entry.
Definition at line 255 of file HashTableDetail.H.
No copy construct.
References HashTableSingle().
Referenced by HashTableSingle(), HashTableSingle(), operator<(), and operator=().


|
inline |
Construct from next pointer, key, (unused) contents.
Definition at line 298 of file HashTableDetail.H.
References HashTableSingle(), key(), key_, and next_.

|
inlinestaticconstexprnoexcept |
This class does not store any value.
Definition at line 260 of file HashTableDetail.H.
References Foam::noexcept.
|
delete |
The key.
Definition at line 315 of file HashTableDetail.H.
References key_, and Foam::noexcept.
Referenced by HashTableSingle().

|
inlinenoexcept |
Const access to the (dummy) mapped value (for API only).
Definition at line 323 of file HashTableDetail.H.
References zero::dummy, and Foam::noexcept.
|
inlinenoexcept |
Const access to the (dummy) mapped value (for API only).
Definition at line 331 of file HashTableDetail.H.
References zero::dummy, and Foam::noexcept.
|
inlinenoexcept |
Non-const access to the (dummy) mapped value (for API only).
Definition at line 339 of file HashTableDetail.H.
References zero::dummy, and Foam::noexcept.
|
inline |
Compare keys.
Definition at line 348 of file HashTableDetail.H.
References HashTableSingle(), key_, and Foam::rhs().

Write the key. There is no value to write.
Definition at line 356 of file HashTableDetail.H.

The lookup key == content.
Definition at line 271 of file HashTableDetail.H.
Referenced by HashTableSingle(), key(), operator<(), and print().
| HashTableSingle* next_ |
Addressing (next in collision list).
Definition at line 276 of file HashTableDetail.H.
Referenced by HashTableSingle().