FairRoot/PandaRoot
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
PndSttTubeMap Class Reference

#include <PndSttTubeMap.h>

Inheritance diagram for PndSttTubeMap:

Public Member Functions

virtual ~PndSttTubeMap ()
 
void AddTube (int tubeId, PndSttTube *tube)
 
PndSttTubeGetTube (int tubeId)
 
std::map< int, PndSttTube * > GetMap ()
 
int GetMapSize ()
 

Static Public Member Functions

static PndSttTubeMapInstance ()
 

Private Member Functions

 PndSttTubeMap ()
 
 ClassDef (PndSttTubeMap, 1)
 

Private Attributes

std::map< int, PndSttTube * > fTubeMap
 

Static Private Attributes

static PndSttTubeMapfInstance = NULL
 

Detailed Description

Definition at line 16 of file PndSttTubeMap.h.

Constructor & Destructor Documentation

PndSttTubeMap::~PndSttTubeMap ( )
virtual

Definition at line 20 of file PndSttTubeMap.cxx.

20  {
21  // TODO Auto-generated destructor stub
22 }
PndSttTubeMap::PndSttTubeMap ( )
private

Definition at line 15 of file PndSttTubeMap.cxx.

Referenced by Instance().

15  {
16  // TODO Auto-generated constructor stub
17 
18 }

Member Function Documentation

void PndSttTubeMap::AddTube ( int  tubeId,
PndSttTube tube 
)
inline

Definition at line 21 of file PndSttTubeMap.h.

References fTubeMap.

Referenced by PndSttTubeMapCreatorRoot::CreateTubeMap().

21 { fTubeMap[tubeId] = tube; }
std::map< int, PndSttTube * > fTubeMap
Definition: PndSttTubeMap.h:31
PndSttTubeMap::ClassDef ( PndSttTubeMap  ,
 
)
private
std::map<int, PndSttTube*> PndSttTubeMap::GetMap ( )
inline

Definition at line 27 of file PndSttTubeMap.h.

References fTubeMap.

Referenced by PndSttTubeMapCreatorRoot::CreateTubeMap().

27 {return fTubeMap;} //todo: change this to an iterator running through all fields of the map to hide the implementation
std::map< int, PndSttTube * > fTubeMap
Definition: PndSttTubeMap.h:31
int PndSttTubeMap::GetMapSize ( )
inline

Definition at line 28 of file PndSttTubeMap.h.

References fTubeMap.

28 { return fTubeMap.size(); }
std::map< int, PndSttTube * > fTubeMap
Definition: PndSttTubeMap.h:31
PndSttTube* PndSttTubeMap::GetTube ( int  tubeId)
inline
PndSttTubeMap * PndSttTubeMap::Instance ( )
static

Member Data Documentation

PndSttTubeMap * PndSttTubeMap::fInstance = NULL
staticprivate

Definition at line 30 of file PndSttTubeMap.h.

Referenced by Instance().

std::map<int, PndSttTube*> PndSttTubeMap::fTubeMap
private

Definition at line 31 of file PndSttTubeMap.h.

Referenced by AddTube(), GetMap(), GetMapSize(), and GetTube().


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