G4ParticleTableIterator< K, V > Class Template Reference

#include <G4ParticleTableIterator.hh>


Public Types

typedef std::map< K, V, std::less<
K > > 
Map

Public Member Functions

 G4ParticleTableIterator (Map &adict)
G4bool operator++ ()
G4bool operator() ()
void reset ()
K * key () const
value () const


Detailed Description

template<class K, class V>
class G4ParticleTableIterator< K, V >

Definition at line 42 of file G4ParticleTableIterator.hh.


Member Typedef Documentation

template<class K, class V>
typedef std::map<K, V, std::less<K> > G4ParticleTableIterator< K, V >::Map

Definition at line 45 of file G4ParticleTableIterator.hh.


Constructor & Destructor Documentation

template<class K, class V>
G4ParticleTableIterator< K, V >::G4ParticleTableIterator ( Map adict  )  [inline]

Definition at line 46 of file G4ParticleTableIterator.hh.

00046                                       :
00047     it(adict.begin()),
00048     mydict(&adict),
00049     defined(false)
00050      {}


Member Function Documentation

template<class K, class V>
K* G4ParticleTableIterator< K, V >::key (  )  const [inline]

Definition at line 71 of file G4ParticleTableIterator.hh.

00071 { return &((*it).first); }

template<class K, class V>
G4bool G4ParticleTableIterator< K, V >::operator() (  )  [inline]

Definition at line 59 of file G4ParticleTableIterator.hh.

References G4ParticleTableIterator< K, V >::operator++().

00060     {
00061       if(defined) {
00062             return operator++();
00063       } else {
00064             defined=true;
00065             it=mydict->begin();
00066             return it!=mydict->end() ? true : false;
00067       }
00068     }

template<class K, class V>
G4bool G4ParticleTableIterator< K, V >::operator++ (  )  [inline]

Definition at line 52 of file G4ParticleTableIterator.hh.

Referenced by G4ParticleTableIterator< K, V >::operator()().

00053     {
00054       if(!defined) return false;
00055       it++;
00056       return it!=mydict->end() ? true : false;
00057     }

template<class K, class V>
void G4ParticleTableIterator< K, V >::reset (  )  [inline]

Definition at line 70 of file G4ParticleTableIterator.hh.

Referenced by G4ITStepProcessor::ActiveOnlyITProcess(), G4PhysicsListHelper::AddTransportation(), G4QInelasticCHIPSBuilder::Build(), G4QInelasticCHIPS_HPBuilder::Build(), G4MiscQGSCBuilder::Build(), G4MiscCHIPSBuilder::Build(), G4HyperonCHIPSBuilder::Build(), G4VUserPhysicsList::BuildPhysicsTable(), G4PhysicsListHelper::CheckParticleList(), G4ErrorPhysicsList::ConstructEM(), G4StoppingPhysics::ConstructProcess(), G4StepLimiterBuilder::ConstructProcess(), G4QStoppingPhysics::ConstructProcess(), G4QElasticPhysics::ConstructProcess(), G4QCaptureAtRestPhysics::ConstructProcess(), G4QAtomicPhysics::ConstructProcess(), G4OpticalPhysics::ConstructProcess(), G4HadronQElasticPhysics::ConstructProcess(), G4HadronInelasticQBBC::ConstructProcess(), G4HadronHElasticPhysics::ConstructProcess(), G4HadronElasticPhysicsLHEP::ConstructProcess(), G4HadronElasticPhysics::ConstructProcess(), G4HadronDElasticPhysics::ConstructProcess(), G4ErrorPhysicsList::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysics_option3::ConstructProcess(), G4EmStandardPhysics_option2::ConstructProcess(), G4EmStandardPhysics_option1::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmPenelopePhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmLivermorePolarizedPhysics::ConstructProcess(), G4EmLivermorePhysics::ConstructProcess(), G4EmDNAPhysicsChemistry::ConstructProcess(), G4EmDNAPhysics::ConstructProcess(), G4DecayPhysics::ConstructProcess(), G4ChargeExchangePhysics::ConstructProcess(), G4RunManager::ConstructScoringWorlds(), G4VUserPhysicsList::DumpList(), G4VParticlePropertyReporter::FillList(), G4ErrorTrackLengthTarget::G4ErrorTrackLengthTarget(), G4VUserPhysicsList::InitializeProcessManager(), G4VUserPhysicsList::RemoveProcessManager(), G4TextPPRetriever::Retrieve(), and G4VUserPhysicsList::StorePhysicsTable().

00070 {defined=false;}

template<class K, class V>
V G4ParticleTableIterator< K, V >::value (  )  const [inline]

Definition at line 72 of file G4ParticleTableIterator.hh.

Referenced by G4ITStepProcessor::ActiveOnlyITProcess(), G4PhysicsListHelper::AddTransportation(), G4QInelasticCHIPSBuilder::Build(), G4QInelasticCHIPS_HPBuilder::Build(), G4MiscQGSCBuilder::Build(), G4MiscCHIPSBuilder::Build(), G4HyperonCHIPSBuilder::Build(), G4VUserPhysicsList::BuildPhysicsTable(), G4PhysicsListHelper::CheckParticleList(), G4ErrorPhysicsList::ConstructEM(), G4StoppingPhysics::ConstructProcess(), G4StepLimiterBuilder::ConstructProcess(), G4QStoppingPhysics::ConstructProcess(), G4QElasticPhysics::ConstructProcess(), G4QCaptureAtRestPhysics::ConstructProcess(), G4QAtomicPhysics::ConstructProcess(), G4OpticalPhysics::ConstructProcess(), G4HadronQElasticPhysics::ConstructProcess(), G4HadronInelasticQBBC::ConstructProcess(), G4HadronHElasticPhysics::ConstructProcess(), G4HadronElasticPhysicsLHEP::ConstructProcess(), G4HadronElasticPhysics::ConstructProcess(), G4HadronDElasticPhysics::ConstructProcess(), G4ErrorPhysicsList::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysics_option3::ConstructProcess(), G4EmStandardPhysics_option2::ConstructProcess(), G4EmStandardPhysics_option1::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmPenelopePhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmLivermorePolarizedPhysics::ConstructProcess(), G4EmLivermorePhysics::ConstructProcess(), G4EmDNAPhysicsChemistry::ConstructProcess(), G4EmDNAPhysics::ConstructProcess(), G4DecayPhysics::ConstructProcess(), G4ChargeExchangePhysics::ConstructProcess(), G4RunManager::ConstructScoringWorlds(), G4ParticleTable::DeleteAllParticles(), G4VUserPhysicsList::DumpList(), G4ParticleTable::DumpTable(), G4VParticlePropertyReporter::FillList(), G4ErrorTrackLengthTarget::G4ErrorTrackLengthTarget(), G4UserPhysicsListMessenger::GetCurrentValue(), G4ProcessTableMessenger::GetCurrentValue(), G4ParticleMessenger::GetCurrentValue(), G4ParticleTable::GetParticle(), G4VUserPhysicsList::InitializeProcessManager(), G4VUserPhysicsList::RemoveProcessManager(), G4TextPPRetriever::Retrieve(), G4ParticleMessenger::SetNewValue(), and G4VUserPhysicsList::StorePhysicsTable().

00072 { return (*it).second; }


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