libhatchet
Loading...
Searching...
No Matches
hxhash_table_map_node< key_t_, value_t_ > Class Template Reference

#include <hxhash_table.hpp>

Public Types

using key_t = key_t_
using value_t = value_t_
Public Types inherited from hxhash_table_set_node< key_t_ >
using key_t = key_t_

Public Member Functions

 hxhash_table_map_node (const key_t_ &key_)
template<typename ref_t_>
 hxhash_table_map_node (const key_t_ &key_, ref_t_ &&value_)
hxhash_table_map_nodehash_next (void) const
const value_t_ & value (void) const
value_t_ & value (void)
Public Member Functions inherited from hxhash_table_set_node< key_t_ >
template<typename ref_t_>
 hxhash_table_set_node (ref_t_ &&key_)
 hxhash_table_set_node (const hxhash_table_set_node &src_)
hxhash_table_set_nodehash_next (void) const
void set_hash_next (hxhash_table_set_node *next_)
const key_t_ & hash_key (void) const
hxhash_t hash_value (void) const

Additional Inherited Members

Static Public Member Functions inherited from hxhash_table_set_node< key_t_ >
static hxhash_t hash_value (const key_t_ &key_)

Detailed Description

template<typename key_t_, typename value_t_>
class hxhash_table_map_node< key_t_, value_t_ >

hxhash_table_map_node - Base class for unordered map entries.

Member Typedef Documentation

◆ key_t

template<typename key_t_, typename value_t_>
using hxhash_table_map_node< key_t_, value_t_ >::key_t = key_t_

◆ value_t

template<typename key_t_, typename value_t_>
using hxhash_table_map_node< key_t_, value_t_ >::value_t = value_t_

Constructor & Destructor Documentation

◆ hxhash_table_map_node() [1/2]

template<typename key_t_, typename value_t_>
hxhash_table_map_node< key_t_, value_t_ >::hxhash_table_map_node ( const key_t_ & key_)
inline

Default-initializes a node.

value_t must default-construct when accessed via operator[].

  • key : Key used to identify the node.

◆ hxhash_table_map_node() [2/2]

template<typename key_t_, typename value_t_>
template<typename ref_t_>
hxhash_table_map_node< key_t_, value_t_ >::hxhash_table_map_node ( const key_t_ & key_,
ref_t_ && value_ )
inline

Constructs a node whose value is copy- or move-initialized.

  • key : Key used to identify the node.
  • value : Value forwarded into storage.

Member Function Documentation

◆ hash_next()

template<typename key_t_, typename value_t_>
hxhash_table_map_node * hxhash_table_map_node< key_t_, value_t_ >::hash_next ( void ) const
inline

Returns the next node in the table's embedded linked list.

◆ value() [1/2]

template<typename key_t_, typename value_t_>
value_t_ & hxhash_table_map_node< key_t_, value_t_ >::value ( void )
inline

Returns the stored value, allowing mutation.

◆ value() [2/2]

template<typename key_t_, typename value_t_>
const value_t_ & hxhash_table_map_node< key_t_, value_t_ >::value ( void ) const
inline

Returns the stored value.


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