Panda3D
|
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. | |
bool | operator() (const Key &a, const Key &b) const |
Returns true if a sorts before b, false otherwise. | |
size_t | operator() (const Key &key) const |
Computes a size_t hash from the float. | |
![]() | |
bool | is_equal (const Key &a, const Key &b) const |
bool | operator() (const Key &a, const Key &b) const |
size_t | operator() (const Key &key) 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 |
Definition at line 120 of file stl_compares.I.
|
inline |
Adds the indicated key into a running hash.
Definition at line 148 of file stl_compares.I.
References AddHash::add_hash().
|
inline |
Returns true if a sorts before b, false otherwise.
Definition at line 139 of file stl_compares.I.
|
inline |
Computes a size_t hash from the float.
Definition at line 130 of file stl_compares.I.
const Key floating_point_hash< Key >::_threshold |
Definition at line 146 of file stl_compares.h.