Internal storage type for HashSet entries. More...
Public Types | |
typedef K | key_type |
Type of key. More... | |
typedef Foam::zero::null | 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. More... | |
const mapped_type & | val () const noexcept |
Const access to the (dummy) mapped value. More... | |
mapped_type & | val () noexcept |
Non-const access to the (dummy) mapped value. 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 211 of file HashTableDetail.H.
Type of key.
Definition at line 216 of file HashTableDetail.H.
typedef Foam::zero::null mapped_type |
Type of content (no content: placeholder)
Definition at line 219 of file HashTableDetail.H.
typedef key_type value_type |
Content storage type to the entry.
Definition at line 222 of file HashTableDetail.H.
|
delete |
No copy construct.
|
inline |
Construct from next pointer, key, (unused) contents.
Definition at line 253 of file HashTableDetail.H.
|
inlinestaticconstexprnoexcept |
This class does not store any value.
Definition at line 225 of file HashTableDetail.H.
|
delete |
No copy assignment.
|
inlinenoexcept |
|
inlinenoexcept |
Const access to the (dummy) mapped value.
Definition at line 274 of file HashTableDetail.H.
References zero::null::dummy.
|
inlinenoexcept |
Const access to the (dummy) mapped value.
Definition at line 280 of file HashTableDetail.H.
References zero::null::dummy.
|
inlinenoexcept |
Non-const access to the (dummy) mapped value.
Definition at line 286 of file HashTableDetail.H.
References zero::null::dummy.
|
inline |
Compare keys.
Definition at line 293 of file HashTableDetail.H.
References HashTableSingle< K >::key_.
|
inline |
Write the key. There is no value to write.
Definition at line 299 of file HashTableDetail.H.
References HashTableSingle< K >::key_, and os().
const K key_ |
The lookup key == content.
Definition at line 234 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 237 of file HashTableDetail.H.