Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

vtkExtensionsRNG Class Reference

#include <vtkExtensionsRNG.h>

Inheritance diagram for vtkExtensionsRNG:

Inheritance graph
[legend]
Collaboration diagram for vtkExtensionsRNG:

Collaboration graph
[legend]
List of all members.

Detailed Description

Complimentary-multiply-with-carry Random Number Generator.

Author:
Sean McInerney
Version:
Revision
1.3
Date:
Date
2004/08/10 07:37:21

Definition at line 34 of file vtkExtensionsRNG.h.

Public Member Functions

 vtkTypeRevisionMacro (vtkExtensionsRNG, vtkObject)
void PrintSelf (ostream &, vtkIndent)
void GetRandomBytes (void *aBuffer, int aByteCount)
 Fill the supplied buffer with a random byte sequence.


Static Public Member Functions

vtkExtensionsRNGNew (void)

Protected Member Functions

 vtkExtensionsRNG (void)
 ~vtkExtensionsRNG ()
void CMWC (vtkUint32Type &aResult)
 Complimentary-multiply-with-carry RNG.


Protected Attributes

vtkSimpleCriticalSection CriticalSection
vtkUint32Type Q [1024]
vtkUint32Type C
vtkUint32Type I


Constructor & Destructor Documentation

vtkExtensionsRNG::vtkExtensionsRNG void   )  [protected]
 

vtkExtensionsRNG::~vtkExtensionsRNG  )  [protected]
 


Member Function Documentation

void vtkExtensionsRNG::CMWC vtkUint32Type &  aResult  )  [inline, protected]
 

Complimentary-multiply-with-carry RNG.

Note:
Thread-safe when used within GetRandomBytes.

Definition at line 75 of file vtkExtensionsRNG.h.

References C, CMWC(), I, and Q.

Referenced by CMWC().

void vtkExtensionsRNG::GetRandomBytes void *  aBuffer,
int  aByteCount
 

Fill the supplied buffer with a random byte sequence.

vtkExtensionsRNG* vtkExtensionsRNG::New void   )  [static]
 

Reimplemented from vtkObject.

void vtkExtensionsRNG::PrintSelf ostream &  ,
vtkIndent 
[virtual]
 

Reimplemented from vtkObject.

vtkExtensionsRNG::vtkTypeRevisionMacro vtkExtensionsRNG  ,
vtkObject 
 


Member Data Documentation

vtkUint32Type vtkExtensionsRNG::C [protected]
 

Definition at line 53 of file vtkExtensionsRNG.h.

Referenced by CMWC().

vtkSimpleCriticalSection vtkExtensionsRNG::CriticalSection [protected]
 

Definition at line 50 of file vtkExtensionsRNG.h.

vtkUint32Type vtkExtensionsRNG::I [protected]
 

Definition at line 54 of file vtkExtensionsRNG.h.

Referenced by CMWC().

vtkUint32Type vtkExtensionsRNG::Q[1024] [protected]
 

Definition at line 52 of file vtkExtensionsRNG.h.

Referenced by CMWC().


The documentation for this class was generated from the following file:
Generated on Tue Aug 10 03:44:42 2004 for vtkExtensions by doxygen 1.3.7