BPHash
General object hashing library for C++
Public Member Functions | List of all members
bphash::detail::MurmurHash3_32_x64 Class Reference

Implementation of MurmurHash3 32-bit x64 hash. More...

#include <MurmurHash3_32_x64.hpp>

Inheritance diagram for bphash::detail::MurmurHash3_32_x64:
Inheritance graph
[legend]
Collaboration diagram for bphash::detail::MurmurHash3_32_x64:
Collaboration graph
[legend]

Public Member Functions

 MurmurHash3_32_x64 (void)=default
 
 ~MurmurHash3_32_x64 (void)=default
 
 MurmurHash3_32_x64 (const MurmurHash3_32_x64 &)=default
 
MurmurHash3_32_x64operator= (const MurmurHash3_32_x64 &)=default
 
 MurmurHash3_32_x64 (MurmurHash3_32_x64 &&)=default
 
MurmurHash3_32_x64operator= (MurmurHash3_32_x64 &&)=default
 
virtual HashValue finalize (void)
 Finish hashing and report the hash. More...
 
- Public Member Functions inherited from bphash::detail::MurmurHash3_128_x64
 MurmurHash3_128_x64 (void)
 
 ~MurmurHash3_128_x64 (void)=default
 
 MurmurHash3_128_x64 (const MurmurHash3_128_x64 &)=default
 
MurmurHash3_128_x64operator= (const MurmurHash3_128_x64 &)=default
 
 MurmurHash3_128_x64 (MurmurHash3_128_x64 &&)=default
 
MurmurHash3_128_x64operator= (MurmurHash3_128_x64 &&)=default
 
virtual void update (void const *data, size_t nbytes)
 Add some data to the hash. More...
 
virtual void reset (void)
 Zero out the hash. More...
 
- Public Member Functions inherited from bphash::detail::HashImpl
virtual ~HashImpl ()=default
 

Detailed Description

Implementation of MurmurHash3 32-bit x64 hash.

This hash calculates the 128-bit using MurmurHash3, and then returns only the first 32-bits. This is found to be faster than running the 32-bit x32 hash on a 64-bit machine.

Definition at line 23 of file MurmurHash3_32_x64.hpp.

Constructor & Destructor Documentation

bphash::detail::MurmurHash3_32_x64::MurmurHash3_32_x64 ( void  )
default
bphash::detail::MurmurHash3_32_x64::~MurmurHash3_32_x64 ( void  )
default
bphash::detail::MurmurHash3_32_x64::MurmurHash3_32_x64 ( const MurmurHash3_32_x64 )
default
bphash::detail::MurmurHash3_32_x64::MurmurHash3_32_x64 ( MurmurHash3_32_x64 &&  )
default

Member Function Documentation

HashValue bphash::detail::MurmurHash3_32_x64::finalize ( void  )
virtual

Finish hashing and report the hash.

Finish hashing any remaining data if necessary, and perform and last steps. Then, return the hash.

Returns
The computed hash of all the data that had been added

Reimplemented from bphash::detail::MurmurHash3_128_x64.

Definition at line 15 of file MurmurHash3_32_x64.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

MurmurHash3_32_x64& bphash::detail::MurmurHash3_32_x64::operator= ( const MurmurHash3_32_x64 )
default
MurmurHash3_32_x64& bphash::detail::MurmurHash3_32_x64::operator= ( MurmurHash3_32_x64 &&  )
default

The documentation for this class was generated from the following files: