SST/macro
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RNG::Table256 Class Reference

A base class for random number generators using a table of 256 32-bit integers. More...

#include <rng.h>

Inheritance diagram for RNG::Table256:
Inheritance graph
Collaboration diagram for RNG::Table256:
Collaboration graph

Public Member Functions

 ~Table256 ()
 
void vec_reseed (const std::vector< rngint_t > &seeds)
 
int nseed ()
 
- Public Member Functions inherited from RNG::UniformInteger
virtual ~UniformInteger ()
 
virtual rngint_t value ()=0
 
rngint_t value_in_range (rngint_t range)
 
virtual double realvalue (bool include_zero=true, bool include_one=true)
 Return a random value in the interval [0,1], (0,1], [0,1), or (0,1) More...
 
void reseed ()
 
void reseed (rngint_t)
 
void reseed (rngint_t, rngint_t)
 
void reseed (rngint_t, rngint_t, rngint_t)
 
void reseed (rngint_t, rngint_t, rngint_t, rngint_t)
 

Protected Member Functions

 Table256 ()
 

Protected Attributes

UniformIntegerseeder_
 
rngint_t t [256]
 
unsigned char c
 

Detailed Description

A base class for random number generators using a table of 256 32-bit integers.

Definition at line 356 of file rng.h.

Constructor & Destructor Documentation

RNG::Table256::~Table256 ( )
RNG::Table256::Table256 ( )
protected

Member Function Documentation

int RNG::Table256::nseed ( )
virtual

Implements RNG::UniformInteger.

Reimplemented in RNG::SWB, and RNG::LFIB4.

void RNG::Table256::vec_reseed ( const std::vector< rngint_t > &  seeds)
virtual

Implements RNG::UniformInteger.

Reimplemented in RNG::SWB, and RNG::LFIB4.

Member Data Documentation

unsigned char RNG::Table256::c
protected

Definition at line 372 of file rng.h.

UniformInteger* RNG::Table256::seeder_
protected

Definition at line 368 of file rng.h.

rngint_t RNG::Table256::t[256]
protected

Definition at line 370 of file rng.h.


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