Panda3D
|
This hash_compare class hashes a string. More...
#include "stl_compares.h"
Public Member Functions | |
size_t | operator() (const Key &key) const |
Trivially computes a size_t hash from the components of the string. | |
bool | operator() (const Key &a, const Key &b) const |
Static Public Member Functions | |
static size_t | add_hash (size_t start, const Key &key) |
Adds the elements of the indicated key into a running hash. |
This hash_compare class hashes a string.
It assumes the Key is a string or provides begin() and end() methods that iterate through Key::value_type.
Definition at line 175 of file stl_compares.h.
size_t sequence_hash< Key, Compare >::add_hash | ( | size_t | start, |
const Key & | key | ||
) | [inline, static] |
Adds the elements of the indicated key into a running hash.
Definition at line 205 of file stl_compares.I.
References AddHash::add_hash().
Referenced by TexGenAttrib::get_hash_impl(), and CullBinAttrib::get_hash_impl().
size_t sequence_hash< Key, Compare >::operator() | ( | const Key & | key | ) | const [inline] |
Trivially computes a size_t hash from the components of the string.
Reimplemented from stl_hash_compare< Key, Compare >.
Definition at line 193 of file stl_compares.I.