Quick Links: |
#include <bslh_fibonaccibadhashwrapper.h>
Public Member Functions | |
FibonacciBadHashWrapper () | |
FibonacciBadHashWrapper (const HASH &hash) | |
FibonacciBadHashWrapper (const FibonacciBadHashWrapper &original) | |
~FibonacciBadHashWrapper () | |
FibonacciBadHashWrapper & | operator= (const FibonacciBadHashWrapper &rhs) |
template<class KEY > | |
size_t | operator() (const KEY &key) const |
Static Public Attributes | |
static const bsls::Types::Uint64 | k_FIBONACCI_HASH_MULTIPLIER = 11400714819323198485ull |
This class provides a hash algorithm wrapper that improves the distribution of varying bits from the HASH
applied to the KEY
.
See Component bslh_fibonaccibadhashwrapper
bslh::FibonacciBadHashWrapper< HASH >::FibonacciBadHashWrapper | ( | ) |
Create a FibonacciBadHashWrapper
having a default constructed hash.
bslh::FibonacciBadHashWrapper< HASH >::FibonacciBadHashWrapper | ( | const HASH & | hash | ) | [explicit] |
Create a FibonacciBadHashWrapper
having the specified hash
.
bslh::FibonacciBadHashWrapper< HASH >::FibonacciBadHashWrapper | ( | const FibonacciBadHashWrapper< HASH > & | original | ) |
Create a FibonacciBadHashWrapper
object having the value of the specified original
object.
bslh::FibonacciBadHashWrapper< HASH >::~FibonacciBadHashWrapper | ( | ) |
Destroy this object.
FibonacciBadHashWrapper& bslh::FibonacciBadHashWrapper< HASH >::operator= | ( | const FibonacciBadHashWrapper< HASH > & | rhs | ) |
Assign to this object the value of the specified rhs
object, and return a reference providing modifiable access to this object.
size_t bslh::FibonacciBadHashWrapper< HASH >::operator() | ( | const KEY & | key | ) | const |
Return the hash of the specified key
, computed as the product of the result of the hash function supplied at construction and k_FIBONACCI_HASH_MULTIPLIER
.
const bsls::Types::Uint64 bslh::FibonacciBadHashWrapper< HASH >::k_FIBONACCI_HASH_MULTIPLIER = 11400714819323198485ull [static] |