rippled
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
beast::detail::xor_shift_engine< class > Class Template Reference
Collaboration diagram for beast::detail::xor_shift_engine< class >:
Collaboration graph
[legend]

Public Types

using result_type = std::uint64_t
 

Public Member Functions

 xor_shift_engine (xor_shift_engine const &)=default
 
xor_shift_engineoperator= (xor_shift_engine const &)=default
 
 xor_shift_engine (result_type val=1977u)
 
void seed (result_type seed)
 
result_type operator() ()
 

Static Public Member Functions

static constexpr result_type min ()
 
static constexpr result_type max ()
 

Static Private Member Functions

static result_type murmurhash3 (result_type x)
 

Private Attributes

result_type s_ [2]
 

Detailed Description

template<class = void>
class beast::detail::xor_shift_engine< class >

Definition at line 32 of file xor_shift_engine.h.

Member Typedef Documentation

◆ result_type

template<class = void>
using beast::detail::xor_shift_engine< class >::result_type = std::uint64_t

Definition at line 35 of file xor_shift_engine.h.

Constructor & Destructor Documentation

◆ xor_shift_engine() [1/2]

template<class = void>
beast::detail::xor_shift_engine< class >::xor_shift_engine ( xor_shift_engine< class > const &  )
default

◆ xor_shift_engine() [2/2]

template<class _ >
beast::detail::xor_shift_engine< _ >::xor_shift_engine ( result_type  val = 1977u)
explicit

Definition at line 67 of file xor_shift_engine.h.

Member Function Documentation

◆ operator=()

template<class = void>
xor_shift_engine& beast::detail::xor_shift_engine< class >::operator= ( xor_shift_engine< class > const &  )
default

◆ seed()

template<class _ >
void beast::detail::xor_shift_engine< _ >::seed ( result_type  seed)

Definition at line 74 of file xor_shift_engine.h.

◆ operator()()

template<class _ >
auto beast::detail::xor_shift_engine< _ >::operator()

Definition at line 84 of file xor_shift_engine.h.

◆ min()

template<class = void>
static constexpr result_type beast::detail::xor_shift_engine< class >::min ( )
staticconstexpr

Definition at line 49 of file xor_shift_engine.h.

◆ max()

template<class = void>
static constexpr result_type beast::detail::xor_shift_engine< class >::max ( )
staticconstexpr

Definition at line 54 of file xor_shift_engine.h.

◆ murmurhash3()

template<class _ >
auto beast::detail::xor_shift_engine< _ >::murmurhash3 ( result_type  x)
staticprivate

Definition at line 95 of file xor_shift_engine.h.

Member Data Documentation

◆ s_

template<class = void>
result_type beast::detail::xor_shift_engine< class >::s_[2]
private

Definition at line 60 of file xor_shift_engine.h.