Geant4  10.02
G4UniformRandPool Class Reference

#include <G4UniformRandPool.hh>

Public Member Functions

 G4UniformRandPool ()
 
 G4UniformRandPool (G4int ps)
 
 ~G4UniformRandPool ()
 
void Resize (G4int newSize)
 
void GetMany (G4double *rnds, G4int howMany)
 
G4double GetOne ()
 
G4int GetPoolSize () const
 

Static Public Member Functions

static G4double flat ()
 
static void flatArray (G4int howmany, G4double *rnds)
 

Private Member Functions

void Fill (G4int howmany)
 

Private Attributes

G4int size
 
G4doublebuffer
 
G4int currentIdx
 

Detailed Description

Definition at line 54 of file G4UniformRandPool.hh.

Constructor & Destructor Documentation

G4UniformRandPool::G4UniformRandPool ( )

Definition at line 103 of file G4UniformRandPool.cc.

References buffer, create_pool(), create_pool_align(), Fill(), and size.

Referenced by flat(), and flatArray().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

G4UniformRandPool::G4UniformRandPool ( G4int  ps)

Definition at line 117 of file G4UniformRandPool.cc.

References buffer, create_pool(), create_pool_align(), Fill(), and size.

+ Here is the call graph for this function:

G4UniformRandPool::~G4UniformRandPool ( )

Definition at line 132 of file G4UniformRandPool.cc.

References buffer, destroy_pool(), and destroy_pool_align().

+ Here is the call graph for this function:

Member Function Documentation

void G4UniformRandPool::Fill ( G4int  howmany)
inlineprivate

Definition at line 101 of file G4UniformRandPool.hh.

References buffer, currentIdx, and size.

Referenced by G4UniformRandPool(), GetMany(), and GetOne().

+ Here is the caller graph for this function:

G4double G4UniformRandPool::flat ( )
static

Definition at line 231 of file G4UniformRandPool.cc.

References G4UniformRandPool(), and G4AutoDelete::Register().

+ Here is the call graph for this function:

void G4UniformRandPool::flatArray ( G4int  howmany,
G4double rnds 
)
static

Definition at line 241 of file G4UniformRandPool.cc.

References G4UniformRandPool(), and G4AutoDelete::Register().

+ Here is the call graph for this function:

void G4UniformRandPool::GetMany ( G4double rnds,
G4int  howMany 
)

Definition at line 156 of file G4UniformRandPool.cc.

References buffer, currentIdx, Fill(), and size.

+ Here is the call graph for this function:

G4double G4UniformRandPool::GetOne ( )
inline

Definition at line 84 of file G4UniformRandPool.hh.

References buffer, currentIdx, Fill(), and size.

+ Here is the call graph for this function:

G4int G4UniformRandPool::GetPoolSize ( ) const
inline

Definition at line 96 of file G4UniformRandPool.hh.

References size.

void G4UniformRandPool::Resize ( G4int  newSize)

Definition at line 144 of file G4UniformRandPool.cc.

References buffer, create_pool(), currentIdx, destroy_pool(), and size.

+ Here is the call graph for this function:

Member Data Documentation

G4double* G4UniformRandPool::buffer
private
G4int G4UniformRandPool::currentIdx
private

Definition at line 81 of file G4UniformRandPool.hh.

Referenced by Fill(), GetMany(), GetOne(), and Resize().

G4int G4UniformRandPool::size
private

Definition at line 79 of file G4UniformRandPool.hh.

Referenced by Fill(), G4UniformRandPool(), GetMany(), GetOne(), GetPoolSize(), and Resize().


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