#include <G4InterpolationIterator.hh>
Public Member Functions | |
G4InterpolationIterator (G4InterpolationManager *aManager) | |
~G4InterpolationIterator () | |
G4bool | Fetch () |
G4InterpolationScheme | Current () |
Definition at line 36 of file G4InterpolationIterator.hh.
G4InterpolationIterator::G4InterpolationIterator | ( | G4InterpolationManager * | aManager | ) | [inline] |
G4InterpolationIterator::~G4InterpolationIterator | ( | ) | [inline] |
G4InterpolationScheme G4InterpolationIterator::Current | ( | ) | [inline] |
Definition at line 67 of file G4InterpolationIterator.hh.
00068 { 00069 if(!started) throw G4HadronicException(__FILE__, __LINE__, "G4InterpolationIterator not started yet"); 00070 return aManager->scheme[current]; 00071 }
G4bool G4InterpolationIterator::Fetch | ( | ) | [inline] |
Definition at line 50 of file G4InterpolationIterator.hh.
References G4InterpolationManager::start.
00051 { 00052 if(!started) 00053 { 00054 started = true; 00055 counter=-1; 00056 current = 0; 00057 } 00058 G4bool result = true; 00059 if(++counter==nEntries) 00060 started = false; 00061 result = false; 00062 else if(current != nRanges-1&&counter==theManager->start[current+1]) 00063 current++; 00064 return result; 00065 }