G4InterpolationIterator Class Reference

#include <G4InterpolationIterator.hh>


Public Member Functions

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


Detailed Description

Definition at line 36 of file G4InterpolationIterator.hh.


Constructor & Destructor Documentation

G4InterpolationIterator::G4InterpolationIterator ( G4InterpolationManager aManager  )  [inline]

Definition at line 42 of file G4InterpolationIterator.hh.

00043    {
00044      started = false;
00045      theManager = aManager;
00046    }

G4InterpolationIterator::~G4InterpolationIterator (  )  [inline]

Definition at line 48 of file G4InterpolationIterator.hh.

00048 {}


Member Function Documentation

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    }


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:52:16 2013 for Geant4 by  doxygen 1.4.7