Geant4  10.02.p03
G4InterpolationIterator Class Reference

#include <G4InterpolationIterator.hh>

Collaboration diagram for G4InterpolationIterator:

Public Member Functions

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

Private Member Functions

 G4InterpolationIterator ()
 

Private Attributes

G4InterpolationManager * theManager
 
G4int current
 
G4int counter
 
G4bool started
 

Detailed Description

Definition at line 35 of file G4InterpolationIterator.hh.

Constructor & Destructor Documentation

◆ G4InterpolationIterator() [1/2]

G4InterpolationIterator::G4InterpolationIterator ( )
inlineprivate

Definition at line 38 of file G4InterpolationIterator.hh.

38 {}

◆ G4InterpolationIterator() [2/2]

G4InterpolationIterator::G4InterpolationIterator ( G4InterpolationManager *  aManager)
inline

Definition at line 41 of file G4InterpolationIterator.hh.

42  {
43  started = false;
44  theManager = aManager;
45  }
G4InterpolationManager * theManager

◆ ~G4InterpolationIterator()

G4InterpolationIterator::~G4InterpolationIterator ( )
inline

Definition at line 47 of file G4InterpolationIterator.hh.

47 {}

Member Function Documentation

◆ Current()

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  }

◆ Fetch()

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  }
G4InterpolationManager * theManager
bool G4bool
Definition: G4Types.hh:79

Member Data Documentation

◆ counter

G4int G4InterpolationIterator::counter
private

Definition at line 75 of file G4InterpolationIterator.hh.

◆ current

G4int G4InterpolationIterator::current
private

Definition at line 74 of file G4InterpolationIterator.hh.

◆ started

G4bool G4InterpolationIterator::started
private

Definition at line 76 of file G4InterpolationIterator.hh.

◆ theManager

G4InterpolationManager* G4InterpolationIterator::theManager
private

Definition at line 73 of file G4InterpolationIterator.hh.


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