CMS 3D CMS Logo

CmsTrackerStringToEnum.h
Go to the documentation of this file.
1 #ifndef Geometry_TrackerNumberingBuilder_CmsTrackerStringToEnum_H
2 #define Geometry_TrackerNumberingBuilder_CmsTrackerStringToEnum_H
3 
5 #include <string>
6 #include <map>
11 public:
12  typedef std::map<std::string, GeometricDet::GeometricEnumType> MapEnumType;
13  typedef std::map<GeometricDet::GeometricEnumType, std::string> ReverseMapEnumType;
14 
17 
18 private:
19  static MapEnumType const& map() { return m_impl._map; }
20  static ReverseMapEnumType const& reverseMap() { return m_impl._reverseMap; }
21 
22  // a quick fix
23  struct Impl {
24  Impl();
27  };
28 
29  static const Impl m_impl;
30 };
31 #endif
CmsTrackerStringToEnum::name
std::string const & name(GeometricDet::GeometricEnumType) const
Definition: CmsTrackerStringToEnum.cc:129
CmsTrackerStringToEnum::type
GeometricDet::GeometricEnumType type(std::string const &) const
Definition: CmsTrackerStringToEnum.cc:122
CmsTrackerStringToEnum
Definition: CmsTrackerStringToEnum.h:10
CmsTrackerStringToEnum::Impl::_reverseMap
ReverseMapEnumType _reverseMap
Definition: CmsTrackerStringToEnum.h:26
CmsTrackerStringToEnum::m_impl
static const Impl m_impl
Definition: CmsTrackerStringToEnum.h:29
CmsTrackerStringToEnum::Impl::_map
MapEnumType _map
Definition: CmsTrackerStringToEnum.h:25
GeometricDet::GeometricEnumType
enum GeometricDet::GDEnumType GeometricEnumType
CmsTrackerStringToEnum::MapEnumType
std::map< std::string, GeometricDet::GeometricEnumType > MapEnumType
Definition: CmsTrackerStringToEnum.h:12
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
GeometricDet.h
CmsTrackerStringToEnum::ReverseMapEnumType
std::map< GeometricDet::GeometricEnumType, std::string > ReverseMapEnumType
Definition: CmsTrackerStringToEnum.h:13
CmsTrackerStringToEnum::map
static MapEnumType const & map()
Definition: CmsTrackerStringToEnum.h:19
Impl
Definition: __init__.py:1
CmsTrackerStringToEnum::reverseMap
static ReverseMapEnumType const & reverseMap()
Definition: CmsTrackerStringToEnum.h:20
CmsTrackerStringToEnum::Impl::Impl
Impl()
Definition: CmsTrackerStringToEnum.cc:5