NEST  2.6.0,not_revisioned_source_dir@0
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Static Private Attributes | List of all members
RandomNumbers Class Reference

Provides random numbers and deviates to SLI. More...

#include <random_numbers.h>

Inheritance diagram for RandomNumbers:
SLIModule

Classes

class  CreateRDVFunction
 
class  CreateRNGFunction
 
class  DrandFunction
 
class  GetStatus_vFunction
 
class  IrandFunction
 
class  RandomArrayFunction
 
class  RandomFunction
 
class  SeedFunction
 
class  SetStatus_vdFunction
 

Public Member Functions

 RandomNumbers ()
 
 ~RandomNumbers ()
 
const std::string name (void) const
 Return name of the module. More...
 
const std::string commandstring (void) const
 Return sli command sequence to be executed for initialisation. More...
 
void init (SLIInterpreter *)
 Initializes the random number module. More...
 
- Public Member Functions inherited from SLIModule
virtual ~SLIModule ()
 
void install (std::ostream &, SLIInterpreter *)
 Print installation message via interpreter message command. More...
 

Static Public Member Functions

static const Dictionaryget_rngdict ()
 Returns global random number generator dictionary. More...
 
static const Dictionaryget_rdvdict ()
 Returns global random deviate generator dictionary. More...
 

Public Attributes

CreateRNGFunction createrngfunction
 
CreateRDVFunction createrdvfunction
 
SetStatus_vdFunction setstatus_vdfunction
 
GetStatus_vFunction getstatus_vfunction
 
SeedFunction seedfunction
 
IrandFunction irandfunction
 
DrandFunction drandfunction
 
RandomArrayFunction randomarrayfunction
 
RandomFunction randomfunction
 

Static Public Attributes

static SLIType RngType
 
static SLIType RngFactoryType
 
static SLIType RdvType
 
static SLIType RdvFactoryType
 

Private Member Functions

template<typename NumberGenerator >
void register_rng_ (const std::string &name, Dictionary &dict)
 Utility function for registering number generators. More...
 
template<typename DeviateGenerator >
void register_rdv_ (const std::string &name, Dictionary &dict)
 Utility function for registering deviate generators. More...
 

Static Private Attributes

static Dictionaryrngdict_ = 0
 manages random number generators More...
 
static Dictionaryrdvdict_ = 0
 manages random deviate generators More...
 

Detailed Description

Provides random numbers and deviates to SLI.

Constructor & Destructor Documentation

RandomNumbers::RandomNumbers ( )
inline
RandomNumbers::~RandomNumbers ( )

Member Function Documentation

const std::string RandomNumbers::commandstring ( void  ) const
inlinevirtual

Return sli command sequence to be executed for initialisation.

Reimplemented from SLIModule.

const Dictionary & RandomNumbers::get_rdvdict ( )
inlinestatic

Returns global random deviate generator dictionary.

References assert(), and rdvdict_.

Referenced by nest::RandomParameter::RandomParameter().

const Dictionary & RandomNumbers::get_rngdict ( )
inlinestatic

Returns global random number generator dictionary.

References assert(), and rngdict_.

void RandomNumbers::init ( SLIInterpreter i)
virtual
const std::string RandomNumbers::name ( void  ) const
inlinevirtual

Return name of the module.

Implements SLIModule.

template<typename DeviateGenerator >
void RandomNumbers::register_rdv_ ( const std::string &  name,
Dictionary dict 
)
private

Utility function for registering deviate generators.

References Dictionary::insert_move().

template<typename NumberGenerator >
void RandomNumbers::register_rng_ ( const std::string &  name,
Dictionary dict 
)
private

Utility function for registering number generators.

Member Data Documentation

CreateRDVFunction RandomNumbers::createrdvfunction

Referenced by init().

CreateRNGFunction RandomNumbers::createrngfunction

Referenced by init().

DrandFunction RandomNumbers::drandfunction

Referenced by init().

GetStatus_vFunction RandomNumbers::getstatus_vfunction

Referenced by init().

IrandFunction RandomNumbers::irandfunction

Referenced by init().

RandomArrayFunction RandomNumbers::randomarrayfunction

Referenced by init().

RandomFunction RandomNumbers::randomfunction

Referenced by init().

Dictionary * RandomNumbers::rdvdict_ = 0
staticprivate

manages random deviate generators

Referenced by get_rdvdict(), and init().

SLIType RandomNumbers::RdvFactoryType
static

Referenced by init(), and ~RandomNumbers().

SLIType RandomNumbers::RdvType
static

Referenced by init(), and ~RandomNumbers().

Dictionary * RandomNumbers::rngdict_ = 0
staticprivate

manages random number generators

Referenced by get_rngdict(), and init().

SLIType RandomNumbers::RngFactoryType
static

Referenced by init(), and ~RandomNumbers().

SLIType RandomNumbers::RngType
static

Referenced by init(), and ~RandomNumbers().

SeedFunction RandomNumbers::seedfunction

Referenced by init().

SetStatus_vdFunction RandomNumbers::setstatus_vdfunction

Referenced by init().


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