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

The map between VGM and Root elements. More...

#include <ElementMap.h>

Public Types

typedef std::map< VGM::IElement *, TGeoElement * > TGeoElementMap
 
typedef TGeoElementMap::const_iterator TGeoElementMapCIterator
 
typedef std::map< TGeoElement *, VGM::IElement * > VgmElementMap
 
typedef VgmElementMap::const_iterator VgmElementMapCIterator
 

Public Member Functions

 ElementMap ()
 
virtual ~ElementMap ()
 
void AddElement (VGM::IElement *, TGeoElement *)
 
void Print () const
 
TGeoElement * GetElement (VGM::IElement *iElement) const
 
VGM::IElementGetElement (TGeoElement *tgeoElement) const
 

Static Public Member Functions

static ElementMapInstance ()
 

Protected Member Functions

 ElementMap (const ElementMap &)
 

Detailed Description

The map between VGM and Root elements.

Author
Ivana Hrivnacova; IPN Orsay

Definition at line 35 of file ElementMap.h.

Member Typedef Documentation

◆ TGeoElementMap

Definition at line 38 of file ElementMap.h.

◆ TGeoElementMapCIterator

TGeoElementMap::const_iterator RootGM::ElementMap::TGeoElementMapCIterator

Definition at line 39 of file ElementMap.h.

◆ VgmElementMap

Definition at line 41 of file ElementMap.h.

◆ VgmElementMapCIterator

VgmElementMap::const_iterator RootGM::ElementMap::VgmElementMapCIterator

Definition at line 42 of file ElementMap.h.

Constructor & Destructor Documentation

◆ ElementMap() [1/2]

RootGM::ElementMap::ElementMap ( )

Standard default constructor

Definition at line 38 of file ElementMap.cxx.

◆ ~ElementMap()

RootGM::ElementMap::~ElementMap ( )
virtual

Definition at line 52 of file ElementMap.cxx.

◆ ElementMap() [2/2]

RootGM::ElementMap::ElementMap ( const ElementMap & )
protected

Protected copy constructor

Definition at line 46 of file ElementMap.cxx.

Member Function Documentation

◆ Instance()

RootGM::ElementMap * RootGM::ElementMap::Instance ( )
static

Singleton access function.

Definition at line 28 of file ElementMap.cxx.

◆ AddElement()

void RootGM::ElementMap::AddElement ( VGM::IElement * iElement,
TGeoElement * tgeoElement )

Add the specified pair in the map

Definition at line 63 of file ElementMap.cxx.

◆ Print()

void RootGM::ElementMap::Print ( ) const

Print all elements in the map

Definition at line 73 of file ElementMap.cxx.

◆ GetElement() [1/2]

TGeoElement * RootGM::ElementMap::GetElement ( VGM::IElement * iElement) const

Find the Root element corresponding to a specified VGM element

Definition at line 92 of file ElementMap.cxx.

◆ GetElement() [2/2]

VGM::IElement * RootGM::ElementMap::GetElement ( TGeoElement * tgeoElement) const

Find the VGM element corresponding to a specified Root element

Definition at line 104 of file ElementMap.cxx.


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