The class for PXD cluster shape index payload.
More...
#include <PXDClusterShapeIndexPar.h>
|
std::map< int, std::string > | m_shapeIndexMap |
| Map of shape names and indexes.
|
|
The class for PXD cluster shape index payload.
Definition at line 24 of file PXDClusterShapeIndexPar.h.
◆ PXDClusterShapeIndexPar()
◆ ~PXDClusterShapeIndexPar()
◆ addShape()
void addShape |
( |
const std::string & |
name, |
|
|
int |
index |
|
) |
| |
|
inline |
Add shape with name and index
Definition at line 32 of file PXDClusterShapeIndexPar.h.
33 {
35 }
std::map< int, std::string > m_shapeIndexMap
Map of shape names and indexes.
◆ getIndexMap()
const std::map< int, std::string > & getIndexMap |
( |
| ) |
const |
|
inline |
◆ getShapeIndex()
int getShapeIndex |
( |
const std::string & |
name | ) |
const |
|
inline |
Returns shape index from name.
Returns -1 for invalid name.
Definition at line 38 of file PXDClusterShapeIndexPar.h.
39 {
41 if (it->second == name)
42 return it->first;
43 return -1;
44 }
◆ getShapeName()
const std::string & getShapeName |
( |
int |
index | ) |
const |
|
inline |
◆ m_shapeIndexMap
std::map<int, std::string> m_shapeIndexMap |
|
private |
The documentation for this class was generated from the following file: