#include <hashGenerator.h>
Public Member Functions | |
HashGenerator () | |
void | add_int (int num) |
Adds another integer to the hash so far. | |
void | add_string (const string &str) |
Adds a string to the hash, by breaking it down into a sequence of integers. | |
unsigned long | get_hash () const |
Returns the hash number generated. | |
Private Attributes | |
long | _hash |
int | _index |
PrimeNumberGenerator | _primes |
Definition at line 37 of file hashGenerator.h.
|
Definition at line 44 of file hashGenerator.cxx. References _hash, _index, _primes, max_prime_numbers, and nassertv. |
|
Adds another integer to the hash so far.
Definition at line 58 of file hashGenerator.cxx. Referenced by DCClass::DCClass(), DCFile::get_num_classes(), and DCMolecularField::write(). |
|
Adds a string to the hash, by breaking it down into a sequence of integers.
Definition at line 75 of file hashGenerator.cxx. References _hash. Referenced by DCClass::DCClass(). |
|
Returns the hash number generated.
Definition at line 92 of file hashGenerator.cxx. |
|
Definition at line 47 of file hashGenerator.h. Referenced by add_string(), and HashGenerator(). |
|
Definition at line 48 of file hashGenerator.h. Referenced by HashGenerator(). |
|
Definition at line 49 of file hashGenerator.h. Referenced by HashGenerator(). |