CMS 3D CMS Logo

UnscheduledConfigurator.h
Go to the documentation of this file.
1 #ifndef FWCore_Framework_UnscheduledConfigurator_h
2 #define FWCore_Framework_UnscheduledConfigurator_h
3 // -*- C++ -*-
4 //
5 // Package: FWCore/Framework
6 // Class : UnscheduledConfigurator
7 //
16 //
17 // Original Author: Chris Jones
18 // Created: Wed, 13 Apr 2016 18:57:55 GMT
19 //
20 
21 // system include files
22 #include <unordered_map>
23 
24 // user include files
25 
26 // forward declarations
27 
28 namespace edm {
29  class Worker;
31 
33  {
34  public:
35  template<typename IT>
37  IT iEnd,
38  UnscheduledAuxiliary const* iAux):
39  m_aux(iAux) {
40  for(auto it = iBegin; it != iEnd; ++it) {
41  m_labelToWorker.emplace((*it)->description().moduleLabel(),*it);
42  }
43  }
44 
45  // ---------- const member functions ---------------------
46  Worker* findWorker(std::string const& iLabel) const {
47  auto itFound = m_labelToWorker.find(iLabel);
48  if(itFound != m_labelToWorker.end()) {
49  return itFound->second;
50  }
51  return nullptr;
52  }
53 
54  UnscheduledAuxiliary const* auxiliary() const { return m_aux; }
55  private:
56  UnscheduledConfigurator(const UnscheduledConfigurator&) = delete; // stop default
57 
58  const UnscheduledConfigurator& operator=(const UnscheduledConfigurator&) = delete; // stop default
59 
60  // ---------- member data --------------------------------
61  std::unordered_map<std::string, Worker*> m_labelToWorker;
63 
64  };
65 }
66 
67 
68 #endif
const UnscheduledConfigurator & operator=(const UnscheduledConfigurator &)=delete
UnscheduledConfigurator(IT iBegin, IT iEnd, UnscheduledAuxiliary const *iAux)
std::vector< LinkConnSpec >::const_iterator IT
UnscheduledAuxiliary const * m_aux
UnscheduledAuxiliary const * auxiliary() const
HLT enums.
Worker * findWorker(std::string const &iLabel) const
std::unordered_map< std::string, Worker * > m_labelToWorker