YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::thread::RandomDevice Class Reference

#include <random_device.hpp>

Public Types

using result_type = std::mt19937_64::result_type
 

Public Member Functions

 RandomDevice ()
 
 RandomDevice (const std::string &)
 
result_type operator() () noexcept
 
double entropy () const noexcept
 
 ~RandomDevice ()=default
 
void reset ()
 
 RandomDevice (const RandomDevice &)=delete
 
RandomDeviceoperator= (const RandomDevice &)=delete
 

Static Public Member Functions

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

Detailed Description

Definition at line 10 of file random_device.hpp.

Member Typedef Documentation

◆ result_type

Definition at line 12 of file random_device.hpp.

Constructor & Destructor Documentation

◆ RandomDevice() [1/3]

yaclib::detail::thread::RandomDevice::RandomDevice ( )

Definition at line 7 of file random_device.cpp.

◆ RandomDevice() [2/3]

yaclib::detail::thread::RandomDevice::RandomDevice ( const std::string &  )
explicit

Definition at line 30 of file random_device.cpp.

◆ ~RandomDevice()

yaclib::detail::thread::RandomDevice::~RandomDevice ( )
default

◆ RandomDevice() [3/3]

yaclib::detail::thread::RandomDevice::RandomDevice ( const RandomDevice )
delete

Member Function Documentation

◆ entropy()

double yaclib::detail::thread::RandomDevice::entropy ( ) const
noexcept

Definition at line 14 of file random_device.cpp.

◆ max()

constexpr RandomDevice::result_type yaclib::detail::thread::RandomDevice::max ( )
staticconstexpr

Definition at line 22 of file random_device.cpp.

◆ min()

constexpr RandomDevice::result_type yaclib::detail::thread::RandomDevice::min ( )
staticconstexpr

Definition at line 18 of file random_device.cpp.

◆ operator()()

RandomDevice::result_type yaclib::detail::thread::RandomDevice::operator() ( )
noexcept

Definition at line 10 of file random_device.cpp.

◆ operator=()

RandomDevice & yaclib::detail::thread::RandomDevice::operator= ( const RandomDevice )
delete

◆ reset()

void yaclib::detail::thread::RandomDevice::reset ( )

Definition at line 26 of file random_device.cpp.

References yaclib::detail::GetSeed().


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