VGM Version 5.3
|
The map between VGM and Geant4 elements. More...
#include <ElementMap.h>
Public Types | |
typedef std::map< VGM::IElement *, G4Element * > | G4ElementMap |
typedef G4ElementMap::const_iterator | G4ElementMapCIterator |
typedef std::map< G4Element *, VGM::IElement * > | VgmElementMap |
typedef VgmElementMap::const_iterator | VgmElementMapCIterator |
Public Member Functions | |
ElementMap () | |
virtual | ~ElementMap () |
void | AddElement (VGM::IElement *, G4Element *) |
void | Print () const |
G4Element * | GetElement (VGM::IElement *iElement) const |
VGM::IElement * | GetElement (G4Element *g4Element) const |
Static Public Member Functions | |
static ElementMap * | Instance () |
Protected Member Functions | |
ElementMap (const ElementMap &) | |
The map between VGM and Geant4 elements.
Definition at line 35 of file ElementMap.h.
typedef std::map<VGM::IElement*, G4Element*> Geant4GM::ElementMap::G4ElementMap |
Definition at line 38 of file ElementMap.h.
typedef G4ElementMap::const_iterator Geant4GM::ElementMap::G4ElementMapCIterator |
Definition at line 39 of file ElementMap.h.
typedef std::map<G4Element*, VGM::IElement*> Geant4GM::ElementMap::VgmElementMap |
Definition at line 41 of file ElementMap.h.
typedef VgmElementMap::const_iterator Geant4GM::ElementMap::VgmElementMapCIterator |
Definition at line 42 of file ElementMap.h.
Geant4GM::ElementMap::ElementMap | ( | ) |
Standard default constructor
Definition at line 38 of file ElementMap.cxx.
|
virtual |
Definition at line 52 of file ElementMap.cxx.
|
protected |
Protected copy constructor
Definition at line 46 of file ElementMap.cxx.
|
static |
Singleton access function.
Definition at line 28 of file ElementMap.cxx.
void Geant4GM::ElementMap::AddElement | ( | VGM::IElement * | iElement, |
G4Element * | g4Element ) |
Add the specified pair in the map
Definition at line 63 of file ElementMap.cxx.
void Geant4GM::ElementMap::Print | ( | ) | const |
Prints all elements in the map
Definition at line 73 of file ElementMap.cxx.
G4Element * Geant4GM::ElementMap::GetElement | ( | VGM::IElement * | iElement | ) | const |
Find the G4 element corresponding to a specified VGM element
Definition at line 92 of file ElementMap.cxx.
VGM::IElement * Geant4GM::ElementMap::GetElement | ( | G4Element * | g4Element | ) | const |
Find the VGM element corresponding to a specified G4 element
Definition at line 104 of file ElementMap.cxx.