The Original CHomP Software
|
This file contains the definition of two hashing methods for integers. More...
Go to the source code of this file.
Macros | |
#define | DEFHASHKEYS(type) |
This macro is used to define a hash key for any type that can be cast onto an unsigned inteter type, in particular, in the library it is used to define the hash key functions for int, long, and char, both signed and unsigned. More... | |
Functions | |
int_t | hashkey1 (const unsigned long &number) |
The first hash key for an unsigned int number. More... | |
int_t | hashkey2 (const unsigned long &number) |
The second hash key for an unsigned int number. More... | |
int_t | hashkey1 (const unsigned int &number) |
int_t | hashkey2 (const unsigned int &number) |
int_t | hashkey1 (const signed int &number) |
int_t | hashkey2 (const signed int &number) |
int_t | hashkey1 (const signed long &number) |
int_t | hashkey2 (const signed long &number) |
int_t | hashkey1 (const unsigned short &number) |
int_t | hashkey2 (const unsigned short &number) |
int_t | hashkey1 (const signed short &number) |
int_t | hashkey2 (const signed short &number) |
int_t | hashkey1 (const unsigned char &number) |
int_t | hashkey2 (const unsigned char &number) |
int_t | hashkey1 (const signed char &number) |
int_t | hashkey2 (const signed char &number) |
This file contains the definition of two hashing methods for integers.
Such methods are necessary when using a hashedset container.
Definition in file inthash.h.