xrpld
Loading...
Searching...
No Matches
beast::detail::XorShiftEngine< class > Class Template Reference

#include <xor_shift_engine.h>

Collaboration diagram for beast::detail::XorShiftEngine< class >:

Public Types

using result_type = std::uint64_t

Public Member Functions

 XorShiftEngine (XorShiftEngine const &)=default
XorShiftEngineoperator= (XorShiftEngine const &)=default
 XorShiftEngine (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::XorShiftEngine< class >

Definition at line 12 of file xor_shift_engine.h.

Member Typedef Documentation

◆ result_type

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

Definition at line 15 of file xor_shift_engine.h.

Constructor & Destructor Documentation

◆ XorShiftEngine() [1/2]

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

◆ XorShiftEngine() [2/2]

template<class Unused>
beast::detail::XorShiftEngine< Unused >::XorShiftEngine ( result_type val = 1977u)
explicit

Definition at line 49 of file xor_shift_engine.h.

Member Function Documentation

◆ operator=()

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

◆ seed()

template<class Unused>
void beast::detail::XorShiftEngine< Unused >::seed ( result_type seed)

Definition at line 56 of file xor_shift_engine.h.

◆ operator()()

template<class Unused>
auto beast::detail::XorShiftEngine< Unused >::operator() ( )

Definition at line 66 of file xor_shift_engine.h.

◆ min()

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

Definition at line 30 of file xor_shift_engine.h.

◆ max()

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

Definition at line 36 of file xor_shift_engine.h.

◆ murmurhash3()

template<class Unused>
auto beast::detail::XorShiftEngine< Unused >::murmurhash3 ( result_type x)
staticprivate

Definition at line 77 of file xor_shift_engine.h.

Member Data Documentation

◆ s_

template<class = void>
result_type beast::detail::XorShiftEngine< class >::s_[2] {}
private

Definition at line 42 of file xor_shift_engine.h.