#include <G4UniformRandPool.hh>
Definition at line 54 of file G4UniformRandPool.hh.
 
      
        
          | G4UniformRandPool::G4UniformRandPool  | 
          ( | 
           | ) | 
           | 
        
      
 
 
      
        
          | G4UniformRandPool::G4UniformRandPool  | 
          ( | 
          G4int  | 
          ps | ) | 
           | 
        
      
 
 
      
        
          | G4UniformRandPool::~G4UniformRandPool  | 
          ( | 
           | ) | 
           | 
        
      
 
 
Definition at line 156 of file G4UniformRandPool.cc.
  158   assert(rnds!=0 && howmany>0);
 
  167   const G4int maxcycles = howmany/size;
 
  171   const G4int peel = howmany%size;
 
  183   if ( maxcycles>0 && currentIdx>0 )
 
  185     assert(currentIdx<=size);
 
  188   for ( ; cycle < maxcycles ; ++cycle )
 
  195     memcpy(rnds+(cycle*size),buffer,
sizeof(
G4double)*size );
 
  208   if (currentIdx + peel >= size)
 
  210     Fill(currentIdx<size?currentIdx:size);
 
  212   memcpy(rnds+(cycle*size) , buffer+currentIdx , 
sizeof(
G4double)*peel );
 
  218   assert(currentIdx<=size);
 
 
 
 
Definition at line 84 of file G4UniformRandPool.hh.
   88   if ( currentIdx >= size )
 
   93   return buffer[currentIdx++];
 
 
 
 
  
  
      
        
          | G4int G4UniformRandPool::GetPoolSize  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
 
      
        
          | void G4UniformRandPool::Resize  | 
          ( | 
          G4int  | 
          newSize | ) | 
           | 
        
      
 
 
The documentation for this class was generated from the following files: