MySQL 8.0.39
Source Code Documentation
anonymous_namespace{json_dom.cc}::Wrapper_hash_key Class Reference

Helper class for building a hash key. More...

Public Member Functions

 Wrapper_hash_key (ulonglong hash_val)
 
ulonglong get_crc () const
 Return the computed hash value. More...
 
void add_character (uchar ch)
 
void add_integer (longlong ll)
 
void add_double (double d)
 
void add_string (const char *str, size_t len)
 

Private Member Functions

void add_to_crc (uchar ch)
 Add another character to the evolving crc. More...
 

Private Attributes

ulonglong m_crc
 

Detailed Description

Helper class for building a hash key.

Constructor & Destructor Documentation

◆ Wrapper_hash_key()

anonymous_namespace{json_dom.cc}::Wrapper_hash_key::Wrapper_hash_key ( ulonglong  hash_val)
inlineexplicit

Member Function Documentation

◆ add_character()

void anonymous_namespace{json_dom.cc}::Wrapper_hash_key::add_character ( uchar  ch)
inline

◆ add_double()

void anonymous_namespace{json_dom.cc}::Wrapper_hash_key::add_double ( double  d)
inline

◆ add_integer()

void anonymous_namespace{json_dom.cc}::Wrapper_hash_key::add_integer ( longlong  ll)
inline

◆ add_string()

void anonymous_namespace{json_dom.cc}::Wrapper_hash_key::add_string ( const char *  str,
size_t  len 
)
inline

◆ add_to_crc()

void anonymous_namespace{json_dom.cc}::Wrapper_hash_key::add_to_crc ( uchar  ch)
inlineprivate

Add another character to the evolving crc.

Parameters
[in]chThe character to add

◆ get_crc()

ulonglong anonymous_namespace{json_dom.cc}::Wrapper_hash_key::get_crc ( ) const
inline

Return the computed hash value.

Member Data Documentation

◆ m_crc

ulonglong anonymous_namespace{json_dom.cc}::Wrapper_hash_key::m_crc
private

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