VGM Version 5.3
Loading...
Searching...
No Matches
Geant4GM::ElementMap Class Reference

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::IElementGetElement (G4Element *g4Element) const
 

Static Public Member Functions

static ElementMapInstance ()
 

Protected Member Functions

 ElementMap (const ElementMap &)
 

Detailed Description

The map between VGM and Geant4 elements.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 35 of file ElementMap.h.

Member Typedef Documentation

◆ G4ElementMap

typedef std::map<VGM::IElement*, G4Element*> Geant4GM::ElementMap::G4ElementMap

Definition at line 38 of file ElementMap.h.

◆ G4ElementMapCIterator

typedef G4ElementMap::const_iterator Geant4GM::ElementMap::G4ElementMapCIterator

Definition at line 39 of file ElementMap.h.

◆ VgmElementMap

typedef std::map<G4Element*, VGM::IElement*> Geant4GM::ElementMap::VgmElementMap

Definition at line 41 of file ElementMap.h.

◆ VgmElementMapCIterator

typedef VgmElementMap::const_iterator Geant4GM::ElementMap::VgmElementMapCIterator

Definition at line 42 of file ElementMap.h.

Constructor & Destructor Documentation

◆ ElementMap() [1/2]

Geant4GM::ElementMap::ElementMap ( )

Standard default constructor

Definition at line 38 of file ElementMap.cxx.

◆ ~ElementMap()

Geant4GM::ElementMap::~ElementMap ( )
virtual

Definition at line 52 of file ElementMap.cxx.

◆ ElementMap() [2/2]

Geant4GM::ElementMap::ElementMap ( const ElementMap & )
protected

Protected copy constructor

Definition at line 46 of file ElementMap.cxx.

Member Function Documentation

◆ Instance()

Geant4GM::ElementMap * Geant4GM::ElementMap::Instance ( )
static

Singleton access function.

Definition at line 28 of file ElementMap.cxx.

◆ AddElement()

void Geant4GM::ElementMap::AddElement ( VGM::IElement * iElement,
G4Element * g4Element )

Add the specified pair in the map

Definition at line 63 of file ElementMap.cxx.

◆ Print()

void Geant4GM::ElementMap::Print ( ) const

Prints all elements in the map

Definition at line 73 of file ElementMap.cxx.

◆ GetElement() [1/2]

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.

◆ GetElement() [2/2]

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.


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