OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
RNGRand Class Reference

#include <RNGRand.h>

Public Types

typedef double Return_t
 

Public Member Functions

 RNGRand (int advance=0)
 
 RNGRand (const RNGRand &rng)
 
 ~RNGRand (void)
 
void AdvanceSeed (int advance=0)
 
void SetSeed (unsigned int seed)
 
unsigned int GetSeed (void) const
 
Return_t GetRandom (void) const
 
Return_t operator() (void) const
 
 operator Return_t () const
 

Static Public Member Functions

static Return_t GetRandMax (void)
 

Private Attributes

unsigned int CurrentSeed
 

Detailed Description

Definition at line 40 of file RNGRand.h.

Member Typedef Documentation

typedef double RNGRand::Return_t

Definition at line 44 of file RNGRand.h.

Constructor & Destructor Documentation

RNGRand::RNGRand ( int  advance = 0)
inline

Definition at line 48 of file RNGRand.h.

References AdvanceSeed().

Here is the call graph for this function:

RNGRand::RNGRand ( const RNGRand rng)
inline

Definition at line 51 of file RNGRand.h.

RNGRand::~RNGRand ( void  )
inline

Definition at line 54 of file RNGRand.h.

Member Function Documentation

void RNGRand::AdvanceSeed ( int  advance = 0)
inline

Definition at line 59 of file RNGRand.h.

References CurrentSeed.

Referenced by RNGRand().

static Return_t RNGRand::GetRandMax ( void  )
inlinestatic

Definition at line 92 of file RNGRand.h.

Referenced by RNGRandSequence::GetRandMax().

Return_t RNGRand::GetRandom ( void  ) const
inline

Definition at line 81 of file RNGRand.h.

Referenced by operator Return_t(), and operator()().

unsigned int RNGRand::GetSeed ( void  ) const
inline

Definition at line 78 of file RNGRand.h.

References CurrentSeed.

RNGRand::operator Return_t ( ) const
inline

Definition at line 89 of file RNGRand.h.

References GetRandom().

Here is the call graph for this function:

Return_t RNGRand::operator() ( void  ) const
inline

Definition at line 86 of file RNGRand.h.

References GetRandom().

Here is the call graph for this function:

void RNGRand::SetSeed ( unsigned int  seed)
inline

Definition at line 72 of file RNGRand.h.

References CurrentSeed, and Options::seed.

Member Data Documentation

unsigned int RNGRand::CurrentSeed
private

Definition at line 95 of file RNGRand.h.

Referenced by AdvanceSeed(), GetSeed(), and SetSeed().


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