Anaphe Home Page Reference Documentation

Main Page     Namespaces     Classes     Source Code    

IRandomManager Class Reference

#include <IRandomManager.h>

List of all members.

Public Methods

virtual IRandomGeneratornewGenerator (const AIDA_STD::string &="flat", const double &=0.0, const double &=0.0, const double &=0.0)=0
 Produce new generator from one of (usually) several options such as Gaussian, exponential, etc. Non-default parameters can be passed and will be used if reasonable.

virtual IRandomGeneratornewGenerator (const AIDA_STD::vector< double > &, const AIDA_STD::string &="", const double &=0.0, const double &=1.0)=0
 Produce a new generator from a vector of positive real numbers representing the function. Bad vectors are ignored and a default (flat) generator is created instead. The lower and upper bounds of the vector may be specified if required (defaults 0 and 1, repectively).

virtual int nGenerators (void) const=0
 how many generators?

virtual IRandomGeneratorgen (const int &id)=0
 Retrieve a generator by ID. Passing a non-existent ID will create a new generator with default parameters and return a pointer to that.

virtual void destroy (const int &victim)=0
 delete one generator by ID

virtual void destroyAll (void)=0
 Delete all generators (all pointers to generators invalidated).

virtual void listGenerators (AIDA_STD::ostream &=AIDA_STD::cout) const=0
 Dump list of current generators.

virtual ~IRandomManager ()


Constructor & Destructor Documentation

virtual IRandomManager::~IRandomManager   [inline, virtual]
 


Member Function Documentation

virtual void IRandomManager::destroy const int &    victim [pure virtual]
 

virtual void IRandomManager::destroyAll void    [pure virtual]
 

virtual IRandomGenerator* IRandomManager::gen const int &    id [pure virtual]
 

virtual void IRandomManager::listGenerators AIDA_STD::ostream &    = AIDA_STD::cout const [pure virtual]
 

virtual IRandomGenerator* IRandomManager::newGenerator const AIDA_STD::vector< double > &   ,
const AIDA_STD::string &    = "",
const double &    = 0.0,
const double &    = 1.0
[pure virtual]
 

virtual IRandomGenerator* IRandomManager::newGenerator const AIDA_STD::string &    = "flat",
const double &    = 0.0,
const double &    = 0.0,
const double &    = 0.0
[pure virtual]
 

virtual int IRandomManager::nGenerators void    const [pure virtual]
 


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

Anaphe documentation generated by Doxygen (www.doxygen.org)