rippled
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
beast::xxhasher Class Reference
Collaboration diagram for beast::xxhasher:
Collaboration graph
[legend]

Public Types

using result_type = std::size_t
 

Public Member Functions

 xxhasher () noexcept
 
template<class Seed , std::enable_if_t< std::is_unsigned< Seed >::value > * = nullptr>
 xxhasher (Seed seed)
 
template<class Seed , std::enable_if_t< std::is_unsigned< Seed >::value > * = nullptr>
 xxhasher (Seed seed, Seed)
 
void operator() (void const *key, std::size_t len) noexcept
 
 operator std::size_t () noexcept
 

Static Public Attributes

static constexpr const auto endian = boost::endian::order::native
 

Private Attributes

detail::XXH64_state_t state_
 

Detailed Description

Definition at line 30 of file xxhasher.h.

Member Typedef Documentation

◆ result_type

Definition at line 39 of file xxhasher.h.

Constructor & Destructor Documentation

◆ xxhasher() [1/3]

beast::xxhasher::xxhasher ( )
noexcept

Definition at line 43 of file xxhasher.h.

◆ xxhasher() [2/3]

template<class Seed , std::enable_if_t< std::is_unsigned< Seed >::value > * = nullptr>
beast::xxhasher::xxhasher ( Seed  seed)
explicit

Definition at line 51 of file xxhasher.h.

◆ xxhasher() [3/3]

template<class Seed , std::enable_if_t< std::is_unsigned< Seed >::value > * = nullptr>
beast::xxhasher::xxhasher ( Seed  seed,
Seed   
)

Definition at line 59 of file xxhasher.h.

Member Function Documentation

◆ operator()()

void beast::xxhasher::operator() ( void const *  key,
std::size_t  len 
)
noexcept

Definition at line 65 of file xxhasher.h.

◆ operator std::size_t()

beast::xxhasher::operator std::size_t ( )
explicitnoexcept

Definition at line 70 of file xxhasher.h.

Member Data Documentation

◆ state_

detail::XXH64_state_t beast::xxhasher::state_
private

Definition at line 34 of file xxhasher.h.

◆ endian

constexpr const auto beast::xxhasher::endian = boost::endian::order::native
staticconstexpr

Definition at line 41 of file xxhasher.h.