Embedded Template Library 1.0
|
Classes | |
class | etl::murmur3< THash > |
class etl::murmur3 |
Calculates the murmur3 hash. See https://en.wikipedia.org/wiki/MurmurHash for more details.
Public Types | |
typedef THash | value_type |
Public Member Functions | |
ETL_STATIC_ASSERT ((etl::is_same< THash, uint32_t >::value||etl::is_same< THash, uint64_t >::value), "Only 32 & 64 bit types supported") | |
murmur3 (value_type seed_=0) | |
template<typename TIterator > | |
murmur3 (TIterator begin, const TIterator end, value_type seed_=0) | |
void | reset () |
Resets the hash to the initial state. | |
template<typename TIterator > | |
void | add (TIterator begin, const TIterator end) |
void | add (uint8_t value_) |
value_type | value () |
Gets the hash value. | |
operator value_type () | |
Conversion operator to value_type. | |
|
inline |
Default constructor.
seed | The seed value. Default = 0. |
|
inline |
Constructor from range.
begin | Start of the range. |
end | End of the range. |
seed | The seed value. Default = 0. |
Adds a range.
begin | |
end |
Adds a uint8_t value. If the hash has already been finalised then a 'hash_finalised' error will be emitted.
value | The char to add to the hash. |