CMS 3D CMS Logo

EventSetupRecordKey.h
Go to the documentation of this file.
1 #ifndef Framework_EventSetupRecordKey_h
2 #define Framework_EventSetupRecordKey_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class : EventSetupRecordKey
7 //
16 //
17 // Author: Chris Jones
18 // Created: Fri Mar 25 15:19:21 EST 2005
19 //
20 
21 // system include files
22 
23 // user include files
26 
27 // forward declarations
28 namespace edm {
29  namespace eventsetup {
31  public:
33 
35  EventSetupRecordKey(const TypeTag& iType) : type_(iType) {}
36 
37  //virtual ~EventSetupRecordKey();
38 
39  // ---------- const member functions ---------------------
40  const TypeTag& type() const { return type_; }
41 
42  bool operator<(const EventSetupRecordKey& iRHS) const { return type_ < iRHS.type_; }
43  bool operator==(const EventSetupRecordKey& iRHS) const { return type_ == iRHS.type_; }
44  inline bool operator!=(const EventSetupRecordKey& iRHS) const { return not(*this == iRHS); }
45 
46  const char* name() const { return type().name(); }
47  // ---------- static member functions --------------------
48  template <class T>
50  return eventsetup::heterocontainer::makeKey<T, EventSetupRecordKey>();
51  }
52 
53  // ---------- member functions ---------------------------
54 
55  private:
56  //EventSetupRecordKey(const EventSetupRecordKey&); // allow default
57 
58  //const EventSetupRecordKey& operator=(const EventSetupRecordKey&); // allow default
59 
60  // ---------- member data --------------------------------
61  TypeTag type_;
62  };
63  } // namespace eventsetup
64 } // namespace edm
65 
66 #endif
bool operator==(const EventSetupRecordKey &iRHS) const
bool operator<(const EventSetupRecordKey &iRHS) const
bool operator!=(const EventSetupRecordKey &iRHS) const
heterocontainer::HCTypeTag TypeTag
HLT enums.
static EventSetupRecordKey makeKey()