CMS 3D CMS Logo

ESGetTokenGeneric.h
Go to the documentation of this file.
1 #ifndef FWCore_Utilities_ESGetTokenGeneric_h
2 #define FWCore_Utilities_ESGetTokenGeneric_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Utilities
6 // Class : ESGetTokenGeneric
7 //
18 #include <limits>
19 
20 namespace edm {
21  class EDConsumerBase;
22  class EventSetup;
23  class EventSetupImpl;
24  namespace eventsetup {
25  class EventSetupRecord;
26  }
27 
28  // A ESGetTokenGeneric is created by calls to 'esConsumes' from an EDM
29  // module.
31  friend class EDConsumerBase;
32  friend class EventSetup;
33  friend class EventSetupImpl;
35 
36  public:
37  constexpr ESGetTokenGeneric() noexcept = default;
38 
41 
44 
45  constexpr unsigned int transitionID() const noexcept { return m_transitionID; }
46  constexpr TypeIDBase const& recordType() const noexcept { return m_recordType; }
48  constexpr ESTokenIndex index() const noexcept { return m_index; }
49  constexpr bool hasValidIndex() const noexcept { return index() != invalidIndex(); }
51 
52  private:
53  explicit constexpr ESGetTokenGeneric(unsigned int transitionID,
55  TypeIDBase const& recordType) noexcept
57 
61  };
62 
63 } // namespace edm
64 
65 #endif
constexpr TypeIDBase const & recordType() const noexcept
constexpr bool hasValidIndex() const noexcept
constexpr ESGetTokenGeneric() noexcept=default
constexpr unsigned int transitionID() const noexcept
static constexpr ESTokenIndex invalidIndex() noexcept
HLT enums.
constexpr ESGetTokenGeneric(unsigned int transitionID, ESTokenIndex index, TypeIDBase const &recordType) noexcept
constexpr bool isInitialized() const noexcept
constexpr ESTokenIndex index() const noexcept