Sierra Toolkit  Version of the Day
eastl::hash_code_base< Key, Value, ExtractKey, Equal, H1, H2, default_ranged_hash, false > Struct Template Reference

#include <hashtable_eastl.h>

Public Types

typedef H1 hasher
 

Public Member Functions

H1 hash_function () const
 
Equal equal_function () const
 
const Equal & key_eq () const
 
Equal & key_eq ()
 

Protected Types

typedef uint32_t hash_code_t
 
typedef uint32_t bucket_index_t
 
typedef hash_node< Value, false > node_type
 

Protected Member Functions

 hash_code_base (const ExtractKey &ex, const Equal &eq, const H1 &h1, const H2 &h2, const default_ranged_hash &)
 
hash_code_t get_hash_code (const Key &key) const
 
bucket_index_t bucket_index (hash_code_t c, uint32_t nBucketCount) const
 
bucket_index_t bucket_index (const Key &, hash_code_t c, uint32_t nBucketCount) const
 
bucket_index_t bucket_index (const node_type *pNode, uint32_t nBucketCount) const
 
bool compare (const Key &key, hash_code_t, node_type *pNode) const
 
void copy_code (node_type *, const node_type *) const
 
void set_code (node_type *, hash_code_t) const
 
void base_swap (hash_code_base &x)
 

Protected Attributes

ExtractKey mExtractKey
 
Equal mEqual
 
H1 m_h1
 
H2 m_h2
 

Detailed Description

template<typename Key, typename Value, typename ExtractKey, typename Equal, typename H1, typename H2>
struct eastl::hash_code_base< Key, Value, ExtractKey, Equal, H1, H2, default_ranged_hash, false >

hash_code_base

Specialization: hash function and range-hashing function, no caching of hash codes. H is provided but ignored. Provides typedef and accessor required by TR1.

Definition at line 572 of file hashtable_eastl.h.


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