14#ifndef CHECKSUMHASHGENERATOR_H
15#define CHECKSUMHASHGENERATOR_H
29 INLINE
void add_fp(
float num,
float threshold);
30 INLINE
void add_fp(
double num,
double threshold);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a specific kind of HashGenerator that simply adds up all of the ints.
void add_int(long num)
Adds another integer to the hash so far.
void add_pointer(void *ptr)
Adds a pointer, derived simply by casting the pointer to an integer.
void add_string(const std::string &str)
Adds a string to the hash, by breaking it down into a sequence of integers.
void add_fp(float num, float threshold)
Adds a floating-point number, first converting it to fixed point by dividing it by the indicated thre...
void add_bool(bool flag)
Adds a boolean flag.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.