MeteoIODoc 20241221.207bde49
mio::RngCore Class Referenceabstract

#include <RandomNumberGenerator.h>

Public Member Functions

 RngCore ()
 
virtual ~RngCore ()
 
virtual uint64_t int64 ()=0
 
virtual uint32_t int32 ()=0
 
virtual void getState (std::vector< uint64_t > &ovec_seed) const =0
 
virtual void setState (const std::vector< uint64_t > &ivec_seed)=0
 
bool getUniqueSeed (uint64_t &store) const
 

Public Attributes

bool hardware_seed_success
 

Protected Member Functions

uint64_t combine32to64 (const uint32_t &low, const uint32_t &high) const
 
double doubFromInt (const uint64_t &rn) const
 
double trueDoub ()
 

Constructor & Destructor Documentation

◆ RngCore()

mio::RngCore::RngCore ( )

◆ ~RngCore()

mio::RngCore::~RngCore ( )
virtual

Member Function Documentation

◆ combine32to64()

uint64_t mio::RngCore::combine32to64 ( const uint32_t &  low,
const uint32_t &  high 
) const
protected

◆ doubFromInt()

double mio::RngCore::doubFromInt ( const uint64_t &  rn) const
protected

◆ getState()

virtual void mio::RngCore::getState ( std::vector< uint64_t > &  ovec_seed) const
pure virtual

◆ getUniqueSeed()

bool mio::RngCore::getUniqueSeed ( uint64_t &  store) const

◆ int32()

virtual uint32_t mio::RngCore::int32 ( )
pure virtual

◆ int64()

virtual uint64_t mio::RngCore::int64 ( )
pure virtual

◆ setState()

virtual void mio::RngCore::setState ( const std::vector< uint64_t > &  ivec_seed)
pure virtual

◆ trueDoub()

double mio::RngCore::trueDoub ( )
protected

Member Data Documentation

◆ hardware_seed_success

bool mio::RngCore::hardware_seed_success

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