Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4InterpolationIterator Class Reference

#include <G4InterpolationIterator.hh>

Public Member Functions

 G4InterpolationIterator (G4InterpolationManager *aManager)
 
 ~G4InterpolationIterator ()
 
G4bool Fetch ()
 
G4InterpolationScheme Current ()
 

Detailed Description

Definition at line 35 of file G4InterpolationIterator.hh.

Constructor & Destructor Documentation

G4InterpolationIterator::G4InterpolationIterator ( G4InterpolationManager aManager)
inline

Definition at line 41 of file G4InterpolationIterator.hh.

42  {
43  started = false;
44  theManager = aManager;
45  }
G4InterpolationIterator::~G4InterpolationIterator ( )
inline

Definition at line 47 of file G4InterpolationIterator.hh.

47 {}

Member Function Documentation

G4InterpolationScheme G4InterpolationIterator::Current ( )
inline

Definition at line 66 of file G4InterpolationIterator.hh.

67  {
68  if(!started) throw G4HadronicException(__FILE__, __LINE__, "G4InterpolationIterator not started yet");
69  return aManager->scheme[current];
70  }
G4bool G4InterpolationIterator::Fetch ( )
inline

Definition at line 49 of file G4InterpolationIterator.hh.

50  {
51  if(!started)
52  {
53  started = true;
54  counter=-1;
55  current = 0;
56  }
57  G4bool result = true;
58  if(++counter==nEntries)
59  started = false;
60  result = false;
61  else if(current != nRanges-1&&counter==theManager->start[current+1])
62  current++;
63  return result;
64  }
G4double G4ParticleHPJENDLHEData::G4double result
bool G4bool
Definition: G4Types.hh:79

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