Geant4-11
Public Member Functions | Private Member Functions | Private Attributes
G4InterpolationIterator Class Reference

#include <G4InterpolationIterator.hh>

Public Member Functions

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

Private Member Functions

 G4InterpolationIterator ()
 

Private Attributes

G4int counter
 
G4int current
 
G4bool started
 
G4InterpolationManagertheManager
 

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

References started, and 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 }

References current, and started.

◆ 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 }
bool G4bool
Definition: G4Types.hh:86

References counter, current, G4InterpolationManager::start, started, and theManager.

Field Documentation

◆ counter

G4int G4InterpolationIterator::counter
private

Definition at line 75 of file G4InterpolationIterator.hh.

Referenced by Fetch().

◆ current

G4int G4InterpolationIterator::current
private

Definition at line 74 of file G4InterpolationIterator.hh.

Referenced by Current(), and Fetch().

◆ started

G4bool G4InterpolationIterator::started
private

Definition at line 76 of file G4InterpolationIterator.hh.

Referenced by Current(), Fetch(), and G4InterpolationIterator().

◆ theManager

G4InterpolationManager* G4InterpolationIterator::theManager
private

Definition at line 73 of file G4InterpolationIterator.hh.

Referenced by Fetch(), and G4InterpolationIterator().


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