CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 {
32 
33  public:
35 
37  EventSetupRecordKey(const TypeTag& iType) :
38  type_(iType) {}
39 
40  //virtual ~EventSetupRecordKey();
41 
42  // ---------- const member functions ---------------------
43  const TypeTag& type() const { return type_;}
44 
45  bool operator<(const EventSetupRecordKey& iRHS) const {
46  return type_ < iRHS.type_;
47  }
48  bool operator==(const EventSetupRecordKey& iRHS) const {
49  return type_ == iRHS.type_;
50  }
51 
52  const char* name() const { return type().name(); }
53  // ---------- static member functions --------------------
54  template<class T>
56  return eventsetup::heterocontainer::makeKey<T,EventSetupRecordKey>();
57  }
58 
59  // ---------- member functions ---------------------------
60 
61  private:
62  //EventSetupRecordKey(const EventSetupRecordKey&); // allow default
63 
64  //const EventSetupRecordKey& operator=(const EventSetupRecordKey&); // allow default
65 
66  // ---------- member data --------------------------------
68 
69 };
70  }
71 }
72 
73 #endif
bool operator==(const EventSetupRecordKey &iRHS) const
bool operator<(const EventSetupRecordKey &iRHS) const
heterocontainer::HCTypeTag TypeTag
static EventSetupRecordKey makeKey()