vSMC  v3.0.0
Scalable Monte Carlo
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
vsmc::RDRANDEngine< ResultType, NTrialMax > Class Template Reference

RDRAND generator. More...

#include <vsmc/rng/rdrand.hpp>

Public Types

using result_type = ResultType
 

Public Member Functions

 RDRANDEngine (result_type=0)
 
template<typename SeedSeq >
 RDRANDEngine (SeedSeq &, typename std::enable_if< internal::is_seed_seq< SeedSeq, result_type, RDRANDEngine< ResultType, NTrialMax >>::value >::type *=nullptr)
 
void discard (std::size_t)
 
result_type operator() ()
 
void seed (result_type)
 
template<typename SeedSeq >
void seed (SeedSeq &, typename std::enable_if< internal::is_seed_seq< SeedSeq, result_type >::value >::type *=nullptr)
 

Static Public Member Functions

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

Friends

bool operator!= (const RDRANDEngine< ResultType, NTrialMax > &, const RDRANDEngine< ResultType, NTrialMax > &)
 
template<typename CharT , typename CharTraits >
std::basic_ostream< CharT, CharTraits > & operator<< (std::basic_ostream< CharT, CharTraits > &os, const RDRANDEngine< ResultType, NTrialMax > &)
 
bool operator== (const RDRANDEngine< ResultType, NTrialMax > &, const RDRANDEngine< ResultType, NTrialMax > &)
 
template<typename CharT , typename CharTraits >
std::basic_istream< CharT, CharTraits > & operator>> (std::basic_istream< CharT, CharTraits > &is, RDRANDEngine< ResultType, NTrialMax > &)
 

Detailed Description

template<typename ResultType, std::size_t NTrialMax = 0>
class vsmc::RDRANDEngine< ResultType, NTrialMax >

RDRAND generator.

Definition at line 98 of file rdrand.hpp.

Member Typedef Documentation

template<typename ResultType , std::size_t NTrialMax = 0>
using vsmc::RDRANDEngine< ResultType, NTrialMax >::result_type = ResultType

Definition at line 111 of file rdrand.hpp.

Constructor & Destructor Documentation

template<typename ResultType , std::size_t NTrialMax = 0>
vsmc::RDRANDEngine< ResultType, NTrialMax >::RDRANDEngine ( result_type  = 0)
inlineexplicit

Definition at line 113 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
template<typename SeedSeq >
vsmc::RDRANDEngine< ResultType, NTrialMax >::RDRANDEngine ( SeedSeq &  ,
typename std::enable_if< internal::is_seed_seq< SeedSeq, result_type, RDRANDEngine< ResultType, NTrialMax >>::value >::type *  = nullptr 
)
inlineexplicit

Definition at line 116 of file rdrand.hpp.

Member Function Documentation

template<typename ResultType , std::size_t NTrialMax = 0>
void vsmc::RDRANDEngine< ResultType, NTrialMax >::discard ( std::size_t  )
inline

Definition at line 135 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
static constexpr result_type vsmc::RDRANDEngine< ResultType, NTrialMax >::max ( )
inlinestatic

Definition at line 142 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
static constexpr result_type vsmc::RDRANDEngine< ResultType, NTrialMax >::min ( )
inlinestatic

Definition at line 137 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
result_type vsmc::RDRANDEngine< ResultType, NTrialMax >::operator() ( )
inline

Definition at line 130 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
void vsmc::RDRANDEngine< ResultType, NTrialMax >::seed ( result_type  )
inline

Definition at line 122 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
template<typename SeedSeq >
void vsmc::RDRANDEngine< ResultType, NTrialMax >::seed ( SeedSeq &  ,
typename std::enable_if< internal::is_seed_seq< SeedSeq, result_type >::value >::type *  = nullptr 
)
inline

Definition at line 125 of file rdrand.hpp.

Friends And Related Function Documentation

template<typename ResultType , std::size_t NTrialMax = 0>
bool operator!= ( const RDRANDEngine< ResultType, NTrialMax > &  ,
const RDRANDEngine< ResultType, NTrialMax > &   
)
friend

Definition at line 153 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
template<typename CharT , typename CharTraits >
std::basic_ostream<CharT, CharTraits>& operator<< ( std::basic_ostream< CharT, CharTraits > &  os,
const RDRANDEngine< ResultType, NTrialMax > &   
)
friend

Definition at line 160 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
bool operator== ( const RDRANDEngine< ResultType, NTrialMax > &  ,
const RDRANDEngine< ResultType, NTrialMax > &   
)
friend

Definition at line 147 of file rdrand.hpp.

template<typename ResultType , std::size_t NTrialMax = 0>
template<typename CharT , typename CharTraits >
std::basic_istream<CharT, CharTraits>& operator>> ( std::basic_istream< CharT, CharTraits > &  is,
RDRANDEngine< ResultType, NTrialMax > &   
)
friend

Definition at line 168 of file rdrand.hpp.