CppTrader  1.0.4.0
C++ Trader
Public Member Functions | Static Public Member Functions | List of all members
CppTrader::Matching::FastHash Class Reference

Fast hash helper. More...

#include <fast_hash.h>

Public Member Functions

 FastHash ()=default
 
 FastHash (const FastHash &)=default
 
 FastHash (FastHash &&) noexcept=default
 
 ~FastHash ()=default
 
FastHashoperator= (const FastHash &)=default
 
FastHashoperator= (FastHash &&) noexcept=default
 
size_t operator() (uint64_t value) const noexcept
 Calculate hash value. More...
 

Static Public Member Functions

static uint64_t Parse (const char str[8]) noexcept
 Parse fixed size string value and return its 64-bit integer equivalent. More...
 

Detailed Description

Fast hash helper.

Fast hash helper is used to calculate 64-bit hash in a fast way.

Thread-safe.

Definition at line 24 of file fast_hash.h.

Constructor & Destructor Documentation

◆ FastHash() [1/3]

CppTrader::Matching::FastHash::FastHash ( )
default

◆ FastHash() [2/3]

CppTrader::Matching::FastHash::FastHash ( const FastHash )
default

◆ FastHash() [3/3]

CppTrader::Matching::FastHash::FastHash ( FastHash &&  )
defaultnoexcept

◆ ~FastHash()

CppTrader::Matching::FastHash::~FastHash ( )
default

Member Function Documentation

◆ operator()()

size_t CppTrader::Matching::FastHash::operator() ( uint64_t  value) const
inlinenoexcept

Calculate hash value.

Definition at line 12 of file fast_hash.inl.

◆ operator=() [1/2]

FastHash& CppTrader::Matching::FastHash::operator= ( const FastHash )
default

◆ operator=() [2/2]

FastHash& CppTrader::Matching::FastHash::operator= ( FastHash &&  )
defaultnoexcept

◆ Parse()

uint64_t CppTrader::Matching::FastHash::Parse ( const char  str[8])
inlinestaticnoexcept

Parse fixed size string value and return its 64-bit integer equivalent.

Parameters
str- Fixed size string (8 bytes length)
Returns
64-bit integer value

Definition at line 22 of file fast_hash.inl.


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