OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::SeqRandNumGen Class Reference

a sequential random number generator More...

#include <SeqRandNumGen.hpp>

Inheritance diagram for OpenMD::SeqRandNumGen:
OpenMD::RandNumGen

Public Types

typedef unsigned long uint32
 
- Public Types inherited from OpenMD::RandNumGen
typedef unsigned long uint32
 

Public Member Functions

 SeqRandNumGen (const uint32 &oneSeed)
 
 SeqRandNumGen ()
 
virtual void seed (const uint32 oneSeed)
 
virtual void seed ()
 
- Public Member Functions inherited from OpenMD::RandNumGen
virtual ~RandNumGen ()
 
RealType rand ()
 
RealType rand (const RealType &n)
 
RealType randExc ()
 
RealType randExc (const RealType &n)
 
RealType randDblExc ()
 
RealType randDblExc (const RealType &n)
 
uint32 randInt ()
 
uint32 randInt (const uint32 &n)
 
RealType rand53 ()
 
RealType randNorm (const RealType mean, const RealType variance)
 

Private Member Functions

 SeqRandNumGen (const SeqRandNumGen &)
 
SeqRandNumGenoperator= (const SeqRandNumGen &)
 

Static Private Attributes

static int nCreatedRNG_ = 0
 

Additional Inherited Members

- Protected Attributes inherited from OpenMD::RandNumGen
MTRandmtRand_
 

Detailed Description

a sequential random number generator

Definition at line 57 of file SeqRandNumGen.hpp.

Member Typedef Documentation

◆ uint32

typedef unsigned long OpenMD::SeqRandNumGen::uint32

Definition at line 59 of file SeqRandNumGen.hpp.

Constructor & Destructor Documentation

◆ SeqRandNumGen() [1/3]

OpenMD::SeqRandNumGen::SeqRandNumGen ( const uint32 oneSeed)

Definition at line 52 of file SeqRandNumGen.cpp.

References OpenMD::RandNumGen::mtRand_, and nCreatedRNG_.

◆ SeqRandNumGen() [2/3]

OpenMD::SeqRandNumGen::SeqRandNumGen ( )

Definition at line 62 of file SeqRandNumGen.cpp.

References OpenMD::RandNumGen::mtRand_, and nCreatedRNG_.

◆ SeqRandNumGen() [3/3]

OpenMD::SeqRandNumGen::SeqRandNumGen ( const SeqRandNumGen )
private

Member Function Documentation

◆ operator=()

SeqRandNumGen& OpenMD::SeqRandNumGen::operator= ( const SeqRandNumGen )
private

◆ seed() [1/2]

void OpenMD::SeqRandNumGen::seed ( const uint32  oneSeed)
virtual

◆ seed() [2/2]

void OpenMD::SeqRandNumGen::seed ( )
virtual

Member Data Documentation

◆ nCreatedRNG_

int OpenMD::SeqRandNumGen::nCreatedRNG_ = 0
staticprivate

number of created random number of generator

Definition at line 73 of file SeqRandNumGen.hpp.

Referenced by seed(), and SeqRandNumGen().


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