Stefan Scholz / ETL
Embed: (wiki syntax)

« Back to documentation index

murmur3< THash > Class Template Reference

murmur3< THash > Class Template Reference
[Murmur3 hash calculations]

Calculates the murmur3 hash. More...

#include <murmur3.h>

Public Member Functions

 murmur3 (value_type seed_=0)
 Default constructor.
template<typename TIterator >
 murmur3 (TIterator begin, const TIterator end, value_type seed_=0)
 Constructor from range.
void reset ()
 Resets the hash to the initial state.
template<typename TIterator >
void add (TIterator begin, const TIterator end)
 Adds a range.
void add (uint8_t value_)
 Adds a uint8_t value.
value_type value ()
 Gets the hash value.
 operator value_type ()
 Conversion operator to value_type.

Detailed Description

template<typename THash>
class etl::murmur3< THash >

Calculates the murmur3 hash.

See https://en.wikipedia.org/wiki/MurmurHash for more details.

Definition at line 56 of file murmur3.h.


Constructor & Destructor Documentation

murmur3 ( value_type  seed_ = 0 )

Default constructor.

Parameters:
seedThe seed value. Default = 0.

Definition at line 68 of file murmur3.h.

murmur3 ( TIterator  begin,
const TIterator  end,
value_type  seed_ = 0 
)

Constructor from range.

Parameters:
beginStart of the range.
endEnd of the range.
seedThe seed value. Default = 0.

Definition at line 81 of file murmur3.h.


Member Function Documentation

void add ( TIterator  begin,
const TIterator  end 
)

Adds a range.

Parameters:
begin
end

Definition at line 120 of file murmur3.h.

void add ( uint8_t  value_ )

Adds a uint8_t value.

If the hash has already been finalised then a 'hash_finalised' error will be emitted.

Parameters:
valueThe char to add to the hash.

Definition at line 145 of file murmur3.h.

operator value_type (  )

Conversion operator to value_type.

Definition at line 174 of file murmur3.h.

void reset (  )

Resets the hash to the initial state.

Definition at line 105 of file murmur3.h.

value_type value (  )

Gets the hash value.

Definition at line 165 of file murmur3.h.