Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
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

◆ Map

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

◆ G4ParticleTableIterator()

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

Definition at line 46 of file G4ParticleTableIterator.hh.

46 :
47 it(adict.begin()),
48 mydict(&adict),
49 defined(false)
50 {}

Member Function Documentation

◆ key()

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

Definition at line 71 of file G4ParticleTableIterator.hh.

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

◆ operator()()

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

Definition at line 59 of file G4ParticleTableIterator.hh.

60 {
61 if(defined) {
62 return operator++();
63 } else {
64 defined=true;
65 it=mydict->begin();
66 return it!=mydict->end() ? true : false;
67 }
68 }

◆ operator++()

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

Definition at line 52 of file G4ParticleTableIterator.hh.

53 {
54 if(!defined) return false;
55 it++;
56 return it!=mydict->end() ? true : false;
57 }

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

◆ reset()

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

Definition at line 70 of file G4ParticleTableIterator.hh.

70{defined=false;}

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

◆ value()

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

Definition at line 72 of file G4ParticleTableIterator.hh.

72{ return (*it).second; }

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


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