Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Attributes
MTRand_int32 Class Reference

#include <mtrand.h>

Inheritance diagram for MTRand_int32:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 MTRand_int32 ()
 MTRand_int32 (unsigned long s)
 MTRand_int32 (const unsigned long *array, int size)
unsigned long operator() ()
void seed (unsigned long)
void seed (const unsigned long *, int size)
virtual ~MTRand_int32 ()

Protected Member Functions

unsigned long rand_int32 ()

Private Member Functions

void gen_state ()
 MTRand_int32 (const MTRand_int32 &)
void operator= (const MTRand_int32 &)
unsigned long twiddle (unsigned long, unsigned long)

Static Private Attributes

static bool init = false
static const int m = 397
static const int n = 624
static int p = 0
static unsigned long state [n] = {0x0UL}

Detailed Description

Definition at line 48 of file mtrand.h.


Constructor & Destructor Documentation

Definition at line 51 of file mtrand.h.

MTRand_int32::MTRand_int32 ( unsigned long  s) [inline]

Definition at line 53 of file mtrand.h.

MTRand_int32::MTRand_int32 ( const unsigned long *  array,
int  size 
) [inline]

Definition at line 55 of file mtrand.h.

virtual MTRand_int32::~MTRand_int32 ( ) [inline, virtual]

Definition at line 62 of file mtrand.h.

MTRand_int32::MTRand_int32 ( const MTRand_int32 ) [private]

Member Function Documentation

void MTRand_int32::gen_state ( ) [private]

Definition at line 12 of file mtrand.cpp.

unsigned long MTRand_int32::operator() ( ) [inline]

Reimplemented in MTRand53, MTRand_open, MTRand_closed, and MTRand.

Definition at line 60 of file mtrand.h.

void MTRand_int32::operator= ( const MTRand_int32 ) [private]
unsigned long MTRand_int32::rand_int32 ( ) [inline, protected]

Definition at line 87 of file mtrand.h.

void MTRand_int32::seed ( unsigned long  s)

Definition at line 21 of file mtrand.cpp.

void MTRand_int32::seed ( const unsigned long *  array,
int  size 
)

Definition at line 33 of file mtrand.cpp.

unsigned long MTRand_int32::twiddle ( unsigned long  u,
unsigned long  v 
) [inline, private]

Definition at line 80 of file mtrand.h.


Member Data Documentation

bool MTRand_int32::init = false [static, private]

Definition at line 70 of file mtrand.h.

const int MTRand_int32::m = 397 [static, private]

Definition at line 66 of file mtrand.h.

const int MTRand_int32::n = 624 [static, private]

Definition at line 66 of file mtrand.h.

int MTRand_int32::p = 0 [static, private]

Definition at line 69 of file mtrand.h.

unsigned long MTRand_int32::state = {0x0UL} [static, private]

Definition at line 68 of file mtrand.h.


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


rrt_exploration
Author(s): Hassan Umari
autogenerated on Thu Jun 6 2019 20:54:03