A simple class to generate hash functions for some primitive types, intended for use with the HashMap class.
More...
|
int | generateHash (const int key, const int upperLimit) const noexcept |
| Generates a simple hash from an integer. More...
|
|
int | generateHash (const int64 key, const int upperLimit) const noexcept |
| Generates a simple hash from an int64. More...
|
|
int | generateHash (const String &key, const int upperLimit) const noexcept |
| Generates a simple hash from a string. More...
|
|
int | generateHash (const var &key, const int upperLimit) const noexcept |
| Generates a simple hash from a variant. More...
|
|
int | generateHash (const void *key, const int upperLimit) const noexcept |
| Generates a simple hash from a void ptr. More...
|
|
A simple class to generate hash functions for some primitive types, intended for use with the HashMap class.
- See also
- HashMap
int DefaultHashFunctions::generateHash |
( |
const int |
key, |
|
|
const int |
upperLimit |
|
) |
| const |
|
noexcept |
Generates a simple hash from an integer.
int DefaultHashFunctions::generateHash |
( |
const int64 |
key, |
|
|
const int |
upperLimit |
|
) |
| const |
|
noexcept |
Generates a simple hash from an int64.
int DefaultHashFunctions::generateHash |
( |
const String & |
key, |
|
|
const int |
upperLimit |
|
) |
| const |
|
noexcept |
Generates a simple hash from a string.
int DefaultHashFunctions::generateHash |
( |
const var & |
key, |
|
|
const int |
upperLimit |
|
) |
| const |
|
noexcept |
int DefaultHashFunctions::generateHash |
( |
const void * |
key, |
|
|
const int |
upperLimit |
|
) |
| const |
|
noexcept |
Generates a simple hash from a void ptr.
The documentation for this struct was generated from the following file: