Rosetta Utilities  2014.35
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>

Public Member Functions

 standard_RG ()
 
virtual ~standard_RG ()
 
void setSeed (int const seed)
 
void setSeed (std::string const &)
 
int getSeed ()
 
double getRandom ()
 
virtual void saveState (std::ostream &)
 
virtual void restoreState (std::istream &)
 
- Public Member Functions inherited from numeric::random::uniform_RG
 uniform_RG ()
 
virtual ~uniform_RG ()
 
- Public Member Functions inherited from utility::pointer::ReferenceCount
void ctor ()
 
virtual ~ReferenceCount ()
 Destructor. More...
 
Size ref_count () const
 Reference count. More...
 

Private Attributes

int seed_
 

Additional Inherited Members

- Public Types inherited from utility::pointer::ReferenceCount
typedef platform::Size Size
 
typedef platform::Size size_type
 
- Protected Member Functions inherited from utility::pointer::ReferenceCount
 ReferenceCount ()
 Default constructor. More...
 
 ReferenceCount (ReferenceCount const &)
 Copy constructor. More...
 
ReferenceCountoperator= (ReferenceCount const &)
 Copy assignment. More...
 

Detailed Description

Generator based on rand() < clib > function.

Constructor & Destructor Documentation

numeric::random::standard_RG::standard_RG ( )
inline
virtual numeric::random::standard_RG::~standard_RG ( )
inlinevirtual

Member Function Documentation

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

Implements numeric::random::uniform_RG.

References seed_.

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

Implements numeric::random::uniform_RG.

References seed_.

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

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: