value_type Struct Reference

The objects actually stored in a hash_list are 'value_type' objects. The member, data_, contains the pair<Key,Value> that is the user data provided by an insert operation. More...

#include <hash_list.h>

Collaboration diagram for value_type:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 value_type (value_type *bn, Key const &k, Value const &v)

Public Attributes

value_typebucket_next_
 pointer to next value_type object in the hash bucket
mapped_type data_
 user data

Detailed Description

template<class Key, class Value, class Hash = Hasher<Key>>
struct cxxtls::hash_list< Key, Value, Hash >::value_type

The objects actually stored in a hash_list are 'value_type' objects. The member, data_, contains the pair<Key,Value> that is the user data provided by an insert operation.

Definition at line 135 of file hash_list.h.


Constructor & Destructor Documentation

value_type ( value_type bn,
Key const &  k,
Value const &  v 
)

construct a value_type given a key, a value, and a pointer to the next value_type object in the hash buck that this one goes in.

Parameters:
bn first entry in the hash buck computed from this key (the key resolves to a bucket, and bn is the first entry currently there).
k the hash key used in the computations
v the value stored in the new hash bucket entry

Definition at line 146 of file hash_list.h.


Member Data Documentation

pointer to next value_type object in the hash bucket

Definition at line 142 of file hash_list.h.

user data

Definition at line 144 of file hash_list.h.


The documentation for this struct was generated from the following file:
Generated on Wed Feb 29 22:55:54 2012 for CXXUtilities by  doxygen 1.6.3