This hash_compare class hashes a float or a double. More...
#include "stl_compares.h"
Public Member Functions | |
floating_point_hash (Key threshold=get_nearly_zero_value((Key) 0)) | |
size_t | add_hash (size_t start, const Key &key) const |
Adds the indicated key into a running hash. More... | |
size_t | operator() (const Key &key) const |
Computes a size_t hash from the float. More... | |
bool | operator() (const Key &a, const Key &b) const |
Returns true if a sorts before b, false otherwise. More... | |
Public Member Functions inherited from stl_hash_compare< Key > | |
bool | is_equal (const Key &a, const Key &b) const |
size_t | operator() (const Key &key) const |
bool | operator() (const Key &a, const Key &b) const |
Public Attributes | |
const Key | _threshold |
This hash_compare class hashes a float or a double.
Definition at line 140 of file stl_compares.h.
|
inline |
Adds the indicated key into a running hash.
Definition at line 149 of file stl_compares.I.
References AddHash::add_hash().
|
inline |
Computes a size_t hash from the float.
Definition at line 131 of file stl_compares.I.
|
inline |
Returns true if a sorts before b, false otherwise.
Definition at line 140 of file stl_compares.I.