Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
HashTableSingle< K > Struct Template Reference
Collaboration diagram for HashTableSingle< K >:
Collaboration graph
[legend]

Public Types

typedef K key_type
 
typedef Foam::zero::null mapped_type
 
typedef key_type value_type
 

Public Member Functions

 HashTableSingle (const HashTableSingle &)=delete
 
void operator= (const HashTableSingle &)=delete
 
template<class... Args>
 HashTableSingle (HashTableSingle *next, const key_type &key, Args &&...)
 
const key_typekey () const
 
const mapped_typecval () const
 
mapped_typeval ()
 
void print (Ostream &os) const
 

Static Public Member Functions

static constexpr bool stores_value () noexcept
 

Public Attributes

key_type key_
 
HashTableSinglenext_
 

Detailed Description

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

Definition at line 202 of file HashTableDetail.H.

Member Typedef Documentation

◆ key_type

typedef K key_type

Definition at line 207 of file HashTableDetail.H.

◆ mapped_type

Definition at line 210 of file HashTableDetail.H.

◆ value_type

Definition at line 213 of file HashTableDetail.H.

Constructor & Destructor Documentation

◆ HashTableSingle() [1/2]

HashTableSingle ( const HashTableSingle< K > &  )
delete

◆ HashTableSingle() [2/2]

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

Definition at line 243 of file HashTableDetail.H.

Member Function Documentation

◆ stores_value()

static constexpr bool stores_value ( )
inlinestaticconstexprnoexcept

Definition at line 216 of file HashTableDetail.H.

◆ operator=()

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

◆ key()

const key_type& key ( ) const
inline

Definition at line 255 of file HashTableDetail.H.

References HashTableSingle< K >::key_.

◆ cval()

const mapped_type& cval ( ) const
inline

Definition at line 261 of file HashTableDetail.H.

References zero::null::dummy.

◆ val()

mapped_type& val ( )
inline

Definition at line 267 of file HashTableDetail.H.

References zero::null::dummy.

◆ print()

void print ( Ostream os) const
inline

Definition at line 273 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_

Definition at line 225 of file HashTableDetail.H.

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

◆ next_

Definition at line 228 of file HashTableDetail.H.


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