HashTableSingle< K > Struct Template Reference

Internal storage type for HashSet entries. More...

Collaboration diagram for HashTableSingle< K >:
[legend]

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_typekey () const
 The key. More...
 
const mapped_typecval () const
 Const access to the (dummy) mapped value. More...
 
mapped_typeval ()
 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...
 
HashTableSinglenext_
 Addressing (next in collision list) More...
 

Detailed Description

template<class K>
struct Foam::Detail::HashTableSingle< K >

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.

Member Typedef Documentation

◆ key_type

typedef K key_type

Type of key.

Definition at line 199 of file HashTableDetail.H.

◆ mapped_type

Type of content.

Definition at line 202 of file HashTableDetail.H.

◆ value_type

Content storage type to the entry.

Definition at line 205 of file HashTableDetail.H.

Constructor & Destructor Documentation

◆ HashTableSingle() [1/2]

HashTableSingle ( const HashTableSingle< K > &  )
delete

No copy construct.

◆ HashTableSingle() [2/2]

HashTableSingle ( HashTableSingle< K > *  next,
const key_type key,
Args &&  ... 
)
inline

Construct from next pointer, key, (unused) contents.

Definition at line 235 of file HashTableDetail.H.

Member Function Documentation

◆ stores_value()

static constexpr bool stores_value ( )
inlinestaticconstexprnoexcept

This struct does not store a value.

Definition at line 208 of file HashTableDetail.H.

◆ operator=()

void operator= ( const HashTableSingle< K > &  )
delete

No copy assignment.

◆ key()

const key_type& key ( ) const
inline

The key.

Definition at line 247 of file HashTableDetail.H.

References HashTableSingle< K >::key_.

◆ cval()

const mapped_type& cval ( ) const
inline

Const access to the (dummy) mapped value.

Definition at line 253 of file HashTableDetail.H.

References zero::null::dummy.

◆ val()

mapped_type& val ( )
inline

Non-const access to the (dummy) mapped value.

Definition at line 259 of file HashTableDetail.H.

References zero::null::dummy.

◆ print()

void print ( Ostream os) const
inline

Write the key. There is no value.

Definition at line 265 of file HashTableDetail.H.

References HashTableSingle< K >::key_, and os().

Here is the call graph for this function:

Member Data Documentation

◆ key_

key_type key_

The lookup key == content.

Definition at line 217 of file HashTableDetail.H.

Referenced by HashTableSingle< K >::key(), and HashTableSingle< K >::print().

◆ next_

Addressing (next in collision list)

Definition at line 220 of file HashTableDetail.H.


The documentation for this struct was generated from the following file: