54 template<
class PrimitiveType>
62 unsigned operator()(
const PrimitiveType&
p,
unsigned seed)
const 64 return Hasher(&p,
sizeof(p), seed);
69 return Hasher(&p,
sizeof(p));
113 unsigned operator()(
const string&
p,
unsigned seed)
const 216 unsigned operator()(
const void*
const&
p,
unsigned seed)
const
A class for handling keywords in dictionaries.
Hashing function class, shared by all the derived classes.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
unsigned operator()(const PrimitiveType &p, unsigned seed) const
A class for handling words, derived from string.
A wordRe is a word, but can also have a regular expression for matching words.
unsigned Hasher(const void *data, size_t len, unsigned seed=0)
Bob Jenkins's 96-bit mixer hashing function (lookup3)
Misc. hashing functions, mostly from Bob Jenkins.
Hash function class for primitives. All non-primitives used to hash entries on hash tables likely nee...
A class for handling character strings derived from std::string.