Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
HashTablePair< K, V > Class Template Reference

Internal storage type for HashTable. More...

Collaboration diagram for HashTablePair< K, V >:
Collaboration graph
[legend]

Public Types

typedef K key_type
 
typedef V mapped_type
 

Public Member Functions

 HashTablePair (const HashTablePair &)=delete
 
void operator= (const HashTablePair &)=delete
 
template<class... Args>
 HashTablePair (HashTablePair *next, const key_type &key, Args &&... args)
 
const key_typekey () const
 
const mapped_typecval () const
 
mapped_typeval ()
 
template<class TypeT = V>
std::enable_if<(std::is_pointer< TypeT >::value||Detail::isPointerLike< TypeT >::value), void >::type print (Ostream &os) const
 
template<class TypeT = V>
std::enable_if<(!std::is_pointer< TypeT >::value &&!Detail::isPointerLike< TypeT >::value), void >::type print (Ostream &os) const
 

Static Public Member Functions

static constexpr bool stores_value () noexcept
 

Public Attributes

key_type key_
 
mapped_type val_
 
HashTablePairnext_
 

Detailed Description

template<class K, class V>
class Foam::Detail::HashTablePair< K, V >

Internal storage type for HashTable.

Source files

Definition at line 84 of file HashTableDetail.H.

Member Typedef Documentation

◆ key_type

typedef K key_type

Definition at line 89 of file HashTableDetail.H.

◆ mapped_type

typedef V mapped_type

Definition at line 92 of file HashTableDetail.H.

Constructor & Destructor Documentation

◆ HashTablePair() [1/2]

HashTablePair ( const HashTablePair< K, V > &  )
delete

◆ HashTablePair() [2/2]

HashTablePair ( HashTablePair< K, V > *  next,
const key_type key,
Args &&...  args 
)
inline

Definition at line 125 of file HashTableDetail.H.

Member Function Documentation

◆ stores_value()

static constexpr bool stores_value ( )
inlinestaticconstexprnoexcept

Definition at line 95 of file HashTableDetail.H.

◆ operator=()

void operator= ( const HashTablePair< K, V > &  )
delete

◆ key()

const key_type& key ( ) const
inline

Definition at line 138 of file HashTableDetail.H.

References HashTablePair< K, V >::key_.

◆ cval()

const mapped_type& cval ( ) const
inline

Definition at line 144 of file HashTableDetail.H.

References HashTablePair< K, V >::val_.

◆ val()

mapped_type& val ( )
inline

Definition at line 150 of file HashTableDetail.H.

References HashTablePair< K, V >::val_.

◆ print() [1/2]

std::enable_if< ( std::is_pointer<TypeT>::value || Detail::isPointerLike<TypeT>::value ), void >::type print ( Ostream os) const
inline

Definition at line 165 of file HashTableDetail.H.

References HashTablePair< K, V >::key_, os(), and HashTablePair< K, V >::val_.

Here is the call graph for this function:

◆ print() [2/2]

std::enable_if< ( !std::is_pointer<TypeT>::value && !Detail::isPointerLike<TypeT>::value ), void >::type print ( Ostream os) const
inline

Definition at line 185 of file HashTableDetail.H.

References HashTablePair< K, V >::key_, os(), and HashTablePair< K, V >::val_.

Here is the call graph for this function:

Member Data Documentation

◆ key_

key_type key_

Definition at line 104 of file HashTableDetail.H.

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

◆ val_

◆ next_

HashTablePair* next_

Definition at line 110 of file HashTableDetail.H.


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