Turi Create
4.0
|
#include <core/util/hash_value.hpp>
Public Member Functions | |
hash_value () | |
template<typename... Args> | |
hash_value (Args... args) | |
Redirect to the appropriate hash function. | |
hash_value (const hash_value &t) | |
Copy constructor. | |
hash_value (uint128_t h) | |
Explicit constructor from a hash value output. | |
uint128_t | hash () const |
Returns the 128 bit hash value of the token. | |
size_t | n_bit_index (size_t n_bits) const |
Returns the top number of bits in the hash. | |
void | save (oarchive &oarc) const |
Serialization. | |
Defines a Weak version of Token class with a fixed, constant hash value. Hashes are calculated using the cityhash_gl hash functions. It is designed as a robust key for hash tables. The difference between this class and the regular Token class is that this one only stores the hash value, making it better suited for querying over network connections.
Definition at line 23 of file hash_value.hpp.
|
inline |
Creates an empty WeakToken object with the 0 hash.
Definition at line 28 of file hash_value.hpp.