class
#include <Corrade/Utility/MurmurHash2.h>
MurmurHash2 MurmurHash 2.
Based on algorithm copyright Austin Appleby, http:/sizeof(std::size_t)
and thus usable for hashing in e.g. std::
Base classes
-
template<std::class AbstractHash<sizeof(std::size_t)>
size_t digestSize> - Base template for hashing classes.
Public static functions
-
static auto digest(const std::
string& data) -> Digest - Digest of given data.
Constructors, destructors, conversion operators
-
MurmurHash2(std::
size_t seed = 0) explicit constexpr - Constructor.
Public functions
-
auto operator()(const std::
string& data) const -> Digest - Compute digest of given data.
-
template<std::auto operator()(const char(&data)[size]) const -> Digest
size_t size> - Compute digest of given data.
-
auto operator()(const char* data,
std::
size_t size) const -> Digest - Compute digest of given data.
Function documentation
static Digest Corrade:: Utility:: MurmurHash2:: digest(const std:: string& data)
Digest of given data.
Computes digest using default zero seed. This function is here for consistency with other AbstractHash subclasses.
Corrade:: Utility:: MurmurHash2:: MurmurHash2(std:: size_t seed = 0) explicit constexpr
Constructor.
Parameters | |
---|---|
seed | Seed to initialize the hash |