libbmq  a5f8a06ba1d16cb5a65643e1fa7f1a1d6aadef40
BloombergLP::bmqt::MessageGUIDHashAlgo Class Reference

#include <bmqt_messageguid.h>

Public Types

typedef bsls::Types::Uint64 result_type
 

Public Member Functions

 MessageGUIDHashAlgo ()
 Constructor. More...
 
void operator() (const void *data, size_t numBytes)
 
result_type computeHash ()
 Compute and return the hash for the GUID. More...
 

Detailed Description

This class provides a hashing algorithm for bmqt::MessageGUID. At the time of writing, this algorithm was found to be approximately 4x faster than the default hashing algorithm that comes with bslh package. Performance-critical applications may want to use this hashing algorithm instead of the default one.

Member Typedef Documentation

◆ result_type

Constructor & Destructor Documentation

◆ MessageGUIDHashAlgo()

BloombergLP::bmqt::MessageGUIDHashAlgo::MessageGUIDHashAlgo ( )
inline

Member Function Documentation

◆ operator()()

void BloombergLP::bmqt::MessageGUIDHashAlgo::operator() ( const void *  data,
size_t  numBytes 
)
inline

Return the "mxm" bit mix on the specified x.

Return the hash combination of the specified lhs and rhs.

References BloombergLP::bmqt::MessageGUID::e_SIZE_BINARY.

◆ computeHash()

MessageGUIDHashAlgo::result_type BloombergLP::bmqt::MessageGUIDHashAlgo::computeHash ( )
inline

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