Unigine::Hasher class
Header: | #include <UnigineGUID.h> |
The Hasher class converts any data types (string, structure, etc.) to indices supported by the Hash tables.
Hasher Class
Members
HashType create ( const UGUID & v ) #
Converts the given value to the type supported by the hash table. For example:struct Hasher<String>
{
using HashType = unsigned int;
UNIGINE_INLINE static HashType create(const char *v) { return String::hash(v); }
UNIGINE_INLINE static HashType create(const String &v) { return String::hash(v.get(), v.size()); }
};
Arguments
- const UGUID & v - The value to convert from.
Return value
The converted value supported by the hash table.Last update:
2024-08-16
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)