PandaRoot
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 ()
 

Detailed Description

Definition at line 16 of file PndSttTubeMap.h.

Constructor & Destructor Documentation

◆ ~PndSttTubeMap()

virtual PndSttTubeMap::~PndSttTubeMap ( )
virtual

Member Function Documentation

◆ AddTube()

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

Definition at line 21 of file PndSttTubeMap.h.

21 { fTubeMap[tubeId] = tube; }

◆ GetMap()

std::map<int, PndSttTube *> PndSttTubeMap::GetMap ( )
inline

Definition at line 29 of file PndSttTubeMap.h.

29 { return fTubeMap; } // todo: change this to an iterator running through all fields of the map to hide the implementation

◆ GetMapSize()

int PndSttTubeMap::GetMapSize ( )
inline

Definition at line 30 of file PndSttTubeMap.h.

30 { return fTubeMap.size(); }

◆ GetTube()

PndSttTube* PndSttTubeMap::GetTube ( int  tubeId)
inline

Definition at line 22 of file PndSttTubeMap.h.

23  {
24  if (fTubeMap.count(tubeId) > 0)
25  return fTubeMap[tubeId];
26  else
27  return nullptr;
28  }

◆ Instance()

static PndSttTubeMap* PndSttTubeMap::Instance ( )
static

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