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