Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Attributes | List of all members
MTRand_int32 Class Reference

#include <mtrand.h>

Inheritance diagram for MTRand_int32:
Inheritance graph
[legend]

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

MTRand_int32::MTRand_int32 ( )
inline

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 ( )
inlinevirtual

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

Definition at line 60 of file mtrand.h.

void MTRand_int32::operator= ( const MTRand_int32 )
private
unsigned long MTRand_int32::rand_int32 ( )
inlineprotected

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 
)
inlineprivate

Definition at line 80 of file mtrand.h.

Member Data Documentation

bool MTRand_int32::init = false
staticprivate

Definition at line 70 of file mtrand.h.

const int MTRand_int32::m = 397
staticprivate

Definition at line 66 of file mtrand.h.

const int MTRand_int32::n = 624
staticprivate

Definition at line 66 of file mtrand.h.

int MTRand_int32::p = 0
staticprivate

Definition at line 69 of file mtrand.h.

unsigned long MTRand_int32::state = {0x0UL}
staticprivate

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 Mon Jun 10 2019 14:57:45