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. 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 |
The key. More... | |
const mapped_type & | cval () const |
Const access to the (dummy) mapped value. More... | |
mapped_type & | val () |
Non-const access to the (dummy) mapped value. More... | |
void | print (Ostream &os) const |
Write the key. There is no value. More... | |
Static Public Member Functions | |
static constexpr bool | stores_value () noexcept |
This struct does not store a value. More... | |
Public Attributes | |
key_type | key_ |
The lookup key == content. More... | |
HashTableSingle * | next_ |
Addressing (next in collision list) More... | |
Internal storage type for HashSet entries.
Structure with a single (K) value and a linked-list for collisions
Definition at line 194 of file HashTableDetail.H.
Type of key.
Definition at line 199 of file HashTableDetail.H.
typedef Foam::zero::null mapped_type |
Type of content.
Definition at line 202 of file HashTableDetail.H.
typedef key_type value_type |
Content storage type to the entry.
Definition at line 205 of file HashTableDetail.H.
|
delete |
No copy construct.
|
inline |
Construct from next pointer, key, (unused) contents.
Definition at line 235 of file HashTableDetail.H.
|
inlinestaticconstexprnoexcept |
This struct does not store a value.
Definition at line 208 of file HashTableDetail.H.
|
delete |
No copy assignment.
|
inline |
|
inline |
Const access to the (dummy) mapped value.
Definition at line 253 of file HashTableDetail.H.
References zero::null::dummy.
|
inline |
Non-const access to the (dummy) mapped value.
Definition at line 259 of file HashTableDetail.H.
References zero::null::dummy.
|
inline |
Write the key. There is no value.
Definition at line 265 of file HashTableDetail.H.
References HashTableSingle< K >::key_, and os().
key_type key_ |
The lookup key == content.
Definition at line 217 of file HashTableDetail.H.
Referenced by HashTableSingle< K >::key(), and HashTableSingle< K >::print().
HashTableSingle* next_ |
Addressing (next in collision list)
Definition at line 220 of file HashTableDetail.H.