VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
Geant4GM
include
Geant4GM
materials
ElementMap.h
Go to the documentation of this file.
1
// $Id$
2
3
// -----------------------------------------------------------------------
4
// The Geant4GM package of the Virtual Geometry Model
5
// Copyright (C) 2007, Ivana Hrivnacova
6
// All rights reserved.
7
//
8
// For the licensing terms see vgm/LICENSE.
9
// Contact: ivana@ipno.in2p3.fr
10
// -----------------------------------------------------------------------
11
13
//
19
20
#ifndef GEANT4_GM_ELEMENT_MAP_H
21
#define GEANT4_GM_ELEMENT_MAP_H
22
23
#include <map>
24
25
class
G4Element;
26
27
namespace
VGM
{
28
class
IElement
;
29
}
30
31
namespace
Geant4GM
{
32
33
class
ElementMap
;
34
35
class
ElementMap
36
{
37
public
:
38
typedef
std::map<VGM::IElement*, G4Element*>
G4ElementMap
;
39
typedef
G4ElementMap::const_iterator
G4ElementMapCIterator
;
40
41
typedef
std::map<G4Element*, VGM::IElement*>
VgmElementMap
;
42
typedef
VgmElementMap::const_iterator
VgmElementMapCIterator
;
43
44
public
:
45
ElementMap
();
46
virtual
~ElementMap
();
47
48
// static access methods
49
static
ElementMap
*
Instance
();
50
51
// methods
52
void
AddElement
(
VGM::IElement
*, G4Element*);
53
void
Print
()
const
;
54
55
// get methods
56
G4Element*
GetElement
(
VGM::IElement
* iElement)
const
;
57
VGM::IElement
*
GetElement
(G4Element* g4Element)
const
;
58
59
protected
:
60
ElementMap
(
const
ElementMap
&);
61
62
private
:
63
// static data members
64
static
ElementMap
* fgInstance;
65
66
// data members
67
G4ElementMap
fG4Elements;
68
VgmElementMap
fVgmElements;
69
};
70
71
}
// namespace Geant4GM
72
73
#endif
// GEANT4_GM_ELEMENT_MAP_H
Geant4GM::ElementMap
The map between VGM and Geant4 elements.
Definition
ElementMap.h:36
Geant4GM::ElementMap::VgmElementMapCIterator
VgmElementMap::const_iterator VgmElementMapCIterator
Definition
ElementMap.h:42
Geant4GM::ElementMap::G4ElementMapCIterator
G4ElementMap::const_iterator G4ElementMapCIterator
Definition
ElementMap.h:39
Geant4GM::ElementMap::Print
void Print() const
Definition
ElementMap.cxx:73
Geant4GM::ElementMap::~ElementMap
virtual ~ElementMap()
Definition
ElementMap.cxx:52
Geant4GM::ElementMap::AddElement
void AddElement(VGM::IElement *, G4Element *)
Definition
ElementMap.cxx:63
Geant4GM::ElementMap::VgmElementMap
std::map< G4Element *, VGM::IElement * > VgmElementMap
Definition
ElementMap.h:41
Geant4GM::ElementMap::ElementMap
ElementMap()
Definition
ElementMap.cxx:38
Geant4GM::ElementMap::Instance
static ElementMap * Instance()
Definition
ElementMap.cxx:28
Geant4GM::ElementMap::G4ElementMap
std::map< VGM::IElement *, G4Element * > G4ElementMap
Definition
ElementMap.h:38
Geant4GM::ElementMap::GetElement
G4Element * GetElement(VGM::IElement *iElement) const
Definition
ElementMap.cxx:92
VGM::IElement
The VGM interface to elements.
Definition
IElement.h:34
Geant4GM
VGM implementation for Geant4.
Definition
Element.h:29
VGM
VGM interfaces.
Definition
VMedium.h:28
Generated on
for VGM by
1.17.0