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

RandomRoot Class Reference

#include <abkrand.h>

Inheritance diagram for RandomRoot:

Inheritance graph
[legend]
Collaboration diagram for RandomRoot:

Collaboration graph
[legend]
List of all members.

Public Member Functions

unsigned getSeed () const
const char * getLocIdent () const
unsigned getCounter () const
const VerbositygetVerbosity () const

Static Public Member Functions

unsigned getExternalSeed ()

Static Public Attributes

const double randTick = 1/(0xffffffff + 1.0)
 author="Mike Oliver"


Protected Member Functions

 RandomRoot (unsigned seed=UINT_MAX, Verbosity verb=Verbosity("silent"))
 RandomRoot (const char *locIdent, unsigned counterOverride=UINT_MAX, Verbosity verb=Verbosity("silent"))

Protected Attributes

unsigned _seed
Verbosity _verb

Private Attributes

SeedHandler _handler

Constructor & Destructor Documentation

RandomRoot::RandomRoot unsigned  seed = UINT_MAX,
Verbosity  verb = Verbosity("silent")
[inline, protected]
 

Definition at line 107 of file abkrand.h.

References _handler, SeedHandler::_seed, _seed, and _verb.

00108                                                       :_handler(seed),
00109                                                        _verb(verb)
00110             {
00111             _seed = _handler._seed;
00112             if (verb.forMajStats)
00113                 cout << "_seed = " << _seed << endl;
00114             }

RandomRoot::RandomRoot const char *  locIdent,
unsigned  counterOverride = UINT_MAX,
Verbosity  verb = Verbosity("silent")
[protected]
 

Definition at line 50 of file abkroot.cxx.

References SeedHandler::_counter, SeedHandler::_externalSeed, _handler, and SeedHandler::_locIdent.

00052                                       :
00053 _handler(locIdent,counterOverride),_verb(verb)
00054     {
00055     if (verb.forMajStats)
00056         cout << "External seed = " << _handler._externalSeed
00057         << " local id = " << _handler._locIdent
00058         << " counter = " << _handler._counter
00059         << endl;
00060     }


Member Function Documentation

unsigned RandomRoot::getCounter  )  const
 

Definition at line 74 of file abkroot.cxx.

References SeedHandler::_counter, _handler, SeedHandler::_isSeedMultipartite, and abkfatal.

Referenced by Tausworthe::_encryptBufMultipartiteSeed().

00075     {
00076     abkfatal(_handler._isSeedMultipartite,"Can't call getLocIdent() "
00077                                           "with old-style seed");
00078     return _handler._counter;
00079     }

unsigned RandomRoot::getExternalSeed  )  [static]
 

Definition at line 62 of file abkroot.cxx.

References SeedHandler::_externalSeed.

Referenced by Tausworthe::_encryptBufMultipartiteSeed().

00063     {
00064     return SeedHandler::_externalSeed;
00065     }

const char * RandomRoot::getLocIdent  )  const
 

Definition at line 67 of file abkroot.cxx.

References _handler, SeedHandler::_isSeedMultipartite, SeedHandler::_locIdent, and abkfatal.

Referenced by Tausworthe::_encryptBufMultipartiteSeed().

00068     {
00069     abkfatal(_handler._isSeedMultipartite,"Can't call getLocIdent() "
00070                                           "with old-style seed");
00071     return _handler._locIdent;
00072     }

unsigned RandomRoot::getSeed  )  const [inline]
 

Definition at line 122 of file abkrand.h.

References _handler, SeedHandler::_isSeedMultipartite, _seed, and abkfatal.

00123             {
00124             abkfatal(!_handler._isSeedMultipartite,"can't use getSeed() "
00125                        "with multipartite seed");
00126             return _seed;
00127             }

const Verbosity& RandomRoot::getVerbosity  )  const [inline]
 

Definition at line 133 of file abkrand.h.

References _verb.

00133 {return _verb;}


Member Data Documentation

SeedHandler RandomRoot::_handler [private]
 

Definition at line 103 of file abkrand.h.

Referenced by getCounter(), getLocIdent(), getSeed(), and RandomRoot().

unsigned RandomRoot::_seed [protected]
 

Definition at line 105 of file abkrand.h.

Referenced by Tausworthe::_encryptWithSeed(), getSeed(), and RandomRoot().

Verbosity RandomRoot::_verb [protected]
 

Definition at line 106 of file abkrand.h.

Referenced by getVerbosity(), and RandomRoot().

const double RandomRoot::randTick = 1/(0xffffffff + 1.0) [static]
 

author="Mike Oliver"

Definition at line 48 of file abkroot.cxx.

Referenced by Tausworthe::_getRawDouble().


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