Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

RandomUnsignedT< RK > Class Template Reference

#include <abkrand.h>

Inheritance diagram for RandomUnsignedT< RK >:

Inheritance graph
[legend]
Collaboration diagram for RandomUnsignedT< RK >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RandomUnsignedT (double _lowerBdry, double _upperBdry, unsigned seedN=UINT_MAX, Verbosity verb=Verbosity("silent"))
 RandomUnsignedT (double _lowerBdry, double _upperBdry, const char *locIdent, unsigned counterOverride=UINT_MAX, Verbosity verb=Verbosity("silent"))
 operator unsigned ()
unsigned operator() (unsigned N)

Protected Member Functions

unsigned _getUnsignedRand ()
double _getDoubleRand ()

Protected Attributes

double _dLowerB
double _dUpperB
double _dDelta
unsigned _lowerB
unsigned _upperB
unsigned _delta

template<class RK>
class RandomUnsignedT< RK >


Constructor & Destructor Documentation

template<class RK>
RandomUnsignedT< RK >::RandomUnsignedT double  _lowerBdry,
double  _upperBdry,
unsigned  seedN = UINT_MAX,
Verbosity  verb = Verbosity("silent")
[inline]
 

Definition at line 324 of file abkrand.h.

00326                                                             :
00327                   RandomNumberGeneratorT<RK>(_lowerBdry,_upperBdry,seedN,verb) {}

template<class RK>
RandomUnsignedT< RK >::RandomUnsignedT double  _lowerBdry,
double  _upperBdry,
const char *  locIdent,
unsigned  counterOverride = UINT_MAX,
Verbosity  verb = Verbosity("silent")
[inline]
 

Definition at line 329 of file abkrand.h.

00331                                                         :
00332                   RandomNumberGeneratorT<RK>(_lowerBdry,_upperBdry,
00333                                              locIdent,counterOverride,verb) {}
    operator unsigned() {return RandomNumberGeneratorT<RK>::_getUnsignedRand();}


Member Function Documentation

template<class RK>
double RandomNumberGeneratorT< RK >::_getDoubleRand  )  [inline, protected, inherited]
 

Definition at line 62 of file abkrand_templ.cxx.

References RandomNumberGeneratorT< RK >::_dDelta, and RandomNumberGeneratorT< RK >::_dLowerB.

Referenced by RandomDoubleT< RK >::operator double().

00063 {
00064 return RK::_getRawDouble()*_dDelta +_dLowerB;
00065 }

template<class RK>
unsigned RandomNumberGeneratorT< RK >::_getUnsignedRand  )  [inline, protected, inherited]
 

Definition at line 55 of file abkrand_templ.cxx.

References RandomNumberGeneratorT< RK >::_delta, and RandomNumberGeneratorT< RK >::_lowerB.

Referenced by RandomUnsignedT< RK >::operator unsigned().

00056 {
00057   return _lowerB + RK::_getRawUnsigned() % _delta;
00058 }

template<class RK>
RandomUnsignedT< RK >::operator unsigned  )  [inline]
 

Definition at line 334 of file abkrand.h.

References RandomNumberGeneratorT< RK >::_getUnsignedRand().

Here is the call graph for this function:

template<class RK>
unsigned RandomNumberGeneratorT< RK >::operator() unsigned  N  )  [inline, inherited]
 

Definition at line 299 of file abkrand.h.

References parquetfp::N.

00299 {return RK::_getRawUnsigned()%N;}


Member Data Documentation

template<class RK>
double RandomNumberGeneratorT< RK >::_dDelta [protected, inherited]
 

Definition at line 258 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::_getDoubleRand(), and RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
unsigned RandomNumberGeneratorT< RK >::_delta [protected, inherited]
 

Definition at line 259 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::_getUnsignedRand(), and RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
double RandomNumberGeneratorT< RK >::_dLowerB [protected, inherited]
 

Definition at line 258 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::_getDoubleRand(), and RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
double RandomNumberGeneratorT< RK >::_dUpperB [protected, inherited]
 

Definition at line 258 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
unsigned RandomNumberGeneratorT< RK >::_lowerB [protected, inherited]
 

Definition at line 259 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::_getUnsignedRand(), and RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().

template<class RK>
unsigned RandomNumberGeneratorT< RK >::_upperB [protected, inherited]
 

Definition at line 259 of file abkrand.h.

Referenced by RandomNumberGeneratorT< RK >::RandomNumberGeneratorT().


The documentation for this class was generated from the following file:
Generated on Mon Apr 25 01:15:33 2005 for Parquete by doxygen 1.3.2