Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Attributes
PyG4ParticleList Class Reference

Public Types

typedef std::vector
< G4ParticleDefinition * > 
ParticleList
 
typedef ParticleList::iterator p_iterator
 

Public Member Functions

p_iterator p_begin ()
 
p_iterator p_end ()
 

Static Public Attributes

static ParticleList particleTableCache
 

Detailed Description

Definition at line 41 of file pyG4ParticleList.cc.

Member Typedef Documentation

typedef ParticleList::iterator PyG4ParticleList::p_iterator

Definition at line 44 of file pyG4ParticleList.cc.

Definition at line 43 of file pyG4ParticleList.cc.

Member Function Documentation

p_iterator PyG4ParticleList::p_begin ( )
inline

Definition at line 48 of file pyG4ParticleList.cc.

References G4ParticleTable::GetParticleTable(), and theParticleIterator.

Referenced by export_PyG4ParticleList().

48  {
50  if(particleTableCache.size() != particleTable-> size() ) {
51  particleTableCache.clear();
53  theParticleIterator= particleTable-> GetIterator();
54  theParticleIterator-> reset();
55  while( (*theParticleIterator)() ){
56  G4ParticleDefinition* particle= theParticleIterator-> value();
57  particleTableCache.push_back(particle);
58  }
59  }
60  return particleTableCache.begin();
61  }
static G4ParticleTable * GetParticleTable()
const XML_Char int const XML_Char * value
static ParticleList particleTableCache
#define theParticleIterator
p_iterator PyG4ParticleList::p_end ( )
inline

Definition at line 63 of file pyG4ParticleList.cc.

References G4ParticleTable::GetParticleTable(), and theParticleIterator.

Referenced by export_PyG4ParticleList().

63  {
65  if(particleTableCache.size() != particleTable-> size() ) {
66  particleTableCache.clear();
68  theParticleIterator= particleTable-> GetIterator();
69  theParticleIterator-> reset();
70  while( (*theParticleIterator)() ){
71  G4ParticleDefinition* particle= theParticleIterator-> value();
72  particleTableCache.push_back(particle);
73  }
74  }
75  return particleTableCache.end();
76  }
static G4ParticleTable * GetParticleTable()
const XML_Char int const XML_Char * value
static ParticleList particleTableCache
#define theParticleIterator

Field Documentation

PyG4ParticleList::ParticleList PyG4ParticleList::particleTableCache
static

Definition at line 46 of file pyG4ParticleList.cc.


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