Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
numeric::random::standard_RG Class Reference

Generator based on rand() < clib > function. More...

#include <uniform.hh>

Inheritance diagram for numeric::random::standard_RG:
Inheritance graph
[legend]

Public Member Functions

 standard_RG ()
 
 ~standard_RG () override=default
 
void setSeed (int const seed) override
 
void setSeed (std::string const &) override
 
int getSeed () override
 
double getRandom () override
 
void saveState (std::ostream &) override
 
void restoreState (std::istream &) override
 
- Public Member Functions inherited from numeric::random::uniform_RG
 uniform_RG ()
 
 ~uniform_RG () override=default
 
- Public Member Functions inherited from utility::VirtualBase
 VirtualBase ()=default
 Default constructor. More...
 
virtual ~VirtualBase ()=default
 The virtual destructor is one of the main reasons for the VirtualBase class. More...
 
 VirtualBase (VirtualBase const &)=default
 
 VirtualBase (VirtualBase &&)=default
 
VirtualBaseoperator= (VirtualBase const &)=default
 
VirtualBaseoperator= (VirtualBase &&)=default
 

Private Attributes

int seed_
 

Detailed Description

Generator based on rand() < clib > function.

Constructor & Destructor Documentation

numeric::random::standard_RG::standard_RG ( )
inline
numeric::random::standard_RG::~standard_RG ( )
inlineoverridedefault

Member Function Documentation

double numeric::random::standard_RG::getRandom ( )
inlineoverridevirtual
int numeric::random::standard_RG::getSeed ( )
inlineoverridevirtual

Implements numeric::random::uniform_RG.

References seed_.

void numeric::random::standard_RG::restoreState ( std::istream &  )
inlineoverridevirtual
void numeric::random::standard_RG::saveState ( std::ostream &  )
inlineoverridevirtual
void numeric::random::standard_RG::setSeed ( int const  seed)
inlineoverridevirtual

Implements numeric::random::uniform_RG.

References seed_.

void numeric::random::standard_RG::setSeed ( std::string const &  )
inlineoverridevirtual

Member Data Documentation

int numeric::random::standard_RG::seed_
private

Referenced by getSeed(), and setSeed().


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