BLOCXX_NAMESPACE::RandomNumber Class Reference

#include <RandomNumber.hpp>

List of all members.

Public Member Functions

 RandomNumber (Int32 lowVal=0, Int32 highVal=RAND_MAX)
Int32 getNextNumber ()

Static Public Member Functions

static void initRandomness ()
static void saveRandomState ()

Private Attributes

Int32 m_lowVal
Int32 m_highVal


Detailed Description

Definition at line 47 of file RandomNumber.hpp.


Constructor & Destructor Documentation

BLOCXX_NAMESPACE::RandomNumber::RandomNumber Int32  lowVal = 0,
Int32  highVal = RAND_MAX
 

Definition at line 69 of file RandomNumber.cpp.

References BLOCXX_NAMESPACE::callOnce(), BLOCXX_NAMESPACE::guard, initRandomness(), m_highVal, and m_lowVal.


Member Function Documentation

Int32 BLOCXX_NAMESPACE::RandomNumber::getNextNumber  ) 
 

Definition at line 130 of file RandomNumber.cpp.

References BLOCXX_NAMESPACE::g_guard, m_highVal, and m_lowVal.

Referenced by BLOCXX_NAMESPACE::getRandomBytes(), and BLOCXX_NAMESPACE::FileSystem::initRandomFile().

void BLOCXX_NAMESPACE::RandomNumber::initRandomness  )  [static]
 

Definition at line 82 of file RandomNumber.cpp.

References BLOCXX_NAMESPACE::seed.

Referenced by RandomNumber().

void BLOCXX_NAMESPACE::RandomNumber::saveRandomState  )  [static]
 

Definition at line 117 of file RandomNumber.cpp.


Member Data Documentation

Int32 BLOCXX_NAMESPACE::RandomNumber::m_highVal [private]
 

Definition at line 61 of file RandomNumber.hpp.

Referenced by getNextNumber(), and RandomNumber().

Int32 BLOCXX_NAMESPACE::RandomNumber::m_lowVal [private]
 

Definition at line 60 of file RandomNumber.hpp.

Referenced by getNextNumber(), and RandomNumber().


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 15:39:11 2006 for blocxx by  doxygen 1.4.6