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

#include <hashtable_eastl.h>

List of all members.

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, true > 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 c, node_type *pNode) const
void copy_code (node_type *pDest, const node_type *pSource) const
void set_code (node_type *pDest, hash_code_t c) 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, true >

hash_code_base

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

Definition at line 643 of file hashtable_eastl.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends