CMS 3D CMS Logo

EventSetupImpl.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_EventSetupImpl_h
2 #define FWCore_Framework_EventSetupImpl_h
3 // -*- C++ -*-
4 //
5 // Package: Framework
6 // Class: EventSetupImpl
7 //
16 //
17 // Author: Chris Jones
18 // Created: Thu Mar 24 13:50:04 EST 2005
19 //
20 
21 // system include files
22 #include <map>
23 #include <optional>
24 #include <vector>
25 
26 // user include files
30 
31 // forward declarations
32 
33 class testEventsetup;
34 
35 namespace edm {
36  class ESInputTag;
37 
38  namespace eventsetup {
39  class EventSetupProvider;
40  class EventSetupRecordImpl;
41  class EventSetupRecordProvider;
42  } // namespace eventsetup
43 
45  public:
47 
48  EventSetupImpl(EventSetupImpl const&) = delete;
49  EventSetupImpl& operator=(EventSetupImpl const&) = delete;
50 
51  // ---------- const member functions ---------------------
53 
54  std::optional<eventsetup::EventSetupRecordGeneric> find(const eventsetup::EventSetupRecordKey&,
55  unsigned int iTransitionID,
56  ESProxyIndex const* getTokenIndices) const;
57 
59  void fillAvailableRecordKeys(std::vector<eventsetup::EventSetupRecordKey>& oToFill) const;
60 
64 
65  bool validRecord(eventsetup::EventSetupRecordKey const& iKey) const;
66 
70  friend class ::testEventsetup;
71 
72  protected:
74 
75  private:
77 
79 
80  void setKeyIters(std::vector<eventsetup::EventSetupRecordKey>::const_iterator const& keysBegin,
81  std::vector<eventsetup::EventSetupRecordKey>::const_iterator const& keysEnd);
82 
83  // ---------- member data --------------------------------
84 
85  std::vector<eventsetup::EventSetupRecordKey>::const_iterator keysBegin_;
86  std::vector<eventsetup::EventSetupRecordKey>::const_iterator keysEnd_;
87  std::vector<eventsetup::EventSetupRecordImpl const*> recordImpls_;
88  };
89 } // namespace edm
90 #endif
edm::EventSetupImpl::findImpl
eventsetup::EventSetupRecordImpl const * findImpl(const eventsetup::EventSetupRecordKey &) const
Definition: EventSetupImpl.cc:59
ESInputTag
edm::EventSetupImpl
Definition: EventSetupImpl.h:44
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::EventSetupImpl::fillAvailableRecordKeys
void fillAvailableRecordKeys(std::vector< eventsetup::EventSetupRecordKey > &oToFill) const
clears the oToFill vector and then fills it with the keys for all available records
Definition: EventSetupImpl.cc:68
edm::EventSetupImpl::find
std::optional< eventsetup::EventSetupRecordGeneric > find(const eventsetup::EventSetupRecordKey &, unsigned int iTransitionID, ESProxyIndex const *getTokenIndices) const
Definition: EventSetupImpl.cc:45
edm::EventSetupImpl::validRecord
bool validRecord(eventsetup::EventSetupRecordKey const &iKey) const
Definition: EventSetupImpl.cc:84
ESIndices.h
edm::eventsetup::EventSetupRecordKey
Definition: EventSetupRecordKey.h:30
edm::ESProxyIndex
Definition: ESIndices.h:29
EventSetupRecord.h
edm::eventsetup::EventSetupRecordProvider
Definition: EventSetupRecordProvider.h:47
edm::eventsetup::EventSetupProvider
Definition: EventSetupProvider.h:49
edm::EventSetupImpl::keysEnd_
std::vector< eventsetup::EventSetupRecordKey >::const_iterator keysEnd_
Definition: EventSetupImpl.h:86
edm::eventsetup::EventSetupRecordImpl
Definition: EventSetupRecordImpl.h:73
edm::EventSetupImpl::setKeyIters
void setKeyIters(std::vector< eventsetup::EventSetupRecordKey >::const_iterator const &keysBegin, std::vector< eventsetup::EventSetupRecordKey >::const_iterator const &keysEnd)
Definition: EventSetupImpl.cc:93
edm::EventSetupImpl::~EventSetupImpl
~EventSetupImpl()
Definition: EventSetupImpl.cc:28
edm::EventSetupImpl::insertRecordImpl
void insertRecordImpl(const eventsetup::EventSetupRecordKey &, const eventsetup::EventSetupRecordImpl *)
Definition: EventSetupImpl.cc:30
edm::EventSetupImpl::keysBegin_
std::vector< eventsetup::EventSetupRecordKey >::const_iterator keysBegin_
Definition: EventSetupImpl.h:85
edm::EventSetupImpl::recordIsProvidedByAModule
bool recordIsProvidedByAModule(eventsetup::EventSetupRecordKey const &) const
Definition: EventSetupImpl.cc:79
edm::EventSetupImpl::recordImpls_
std::vector< eventsetup::EventSetupRecordImpl const * > recordImpls_
Definition: EventSetupImpl.h:87
EventSetupRecordKey.h
edm::EventSetupImpl::operator=
EventSetupImpl & operator=(EventSetupImpl const &)=delete
edm::EventSetupImpl::addRecordImpl
void addRecordImpl(const eventsetup::EventSetupRecordImpl &iRecord)
Definition: EventSetupImpl.cc:41
edm::EventSetupImpl::EventSetupImpl
EventSetupImpl()
Definition: EventSetupImpl.cc:26