FWCore
Framework
src
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;
30
class
UnscheduledAuxiliary
;
31
32
class
UnscheduledConfigurator
{
33
public
:
34
template
<
typename
IT>
35
UnscheduledConfigurator
(
IT
iBegin,
IT
iEnd,
UnscheduledAuxiliary
const
* iAux) :
m_aux
(iAux) {
36
for
(
auto
it = iBegin; it != iEnd; ++it) {
37
m_labelToWorker
.emplace((*it)->description()->moduleLabel(), *it);
38
}
39
}
40
41
UnscheduledConfigurator
(
const
UnscheduledConfigurator
&) =
delete
;
// stop default
42
const
UnscheduledConfigurator
&
operator=
(
const
UnscheduledConfigurator
&) =
delete
;
// stop default
43
44
// ---------- const member functions ---------------------
45
Worker
*
findWorker
(
std::string
const
& iLabel)
const
{
46
auto
itFound =
m_labelToWorker
.find(iLabel);
47
if
(itFound !=
m_labelToWorker
.end()) {
48
return
itFound->second;
49
}
50
return
nullptr
;
51
}
52
53
UnscheduledAuxiliary
const
*
auxiliary
()
const
{
return
m_aux
; }
54
55
private
:
56
// ---------- member data --------------------------------
57
std::unordered_map<std::string, Worker*>
m_labelToWorker
;
58
UnscheduledAuxiliary
const
*
m_aux
;
59
};
60
}
// namespace edm
61
62
#endif
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::Worker
Definition:
Worker.h:90
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::UnscheduledConfigurator::UnscheduledConfigurator
UnscheduledConfigurator(IT iBegin, IT iEnd, UnscheduledAuxiliary const *iAux)
Definition:
UnscheduledConfigurator.h:35
UnscheduledAuxiliary
edm::UnscheduledConfigurator::findWorker
Worker * findWorker(std::string const &iLabel) const
Definition:
UnscheduledConfigurator.h:45
edm::UnscheduledConfigurator
Definition:
UnscheduledConfigurator.h:32
edm::UnscheduledAuxiliary
Definition:
UnscheduledAuxiliary.h:33
IT
std::vector< LinkConnSpec >::const_iterator IT
Definition:
TriggerBoardSpec.cc:5
edm::UnscheduledConfigurator::m_labelToWorker
std::unordered_map< std::string, Worker * > m_labelToWorker
Definition:
UnscheduledConfigurator.h:57
edm::UnscheduledConfigurator::auxiliary
UnscheduledAuxiliary const * auxiliary() const
Definition:
UnscheduledConfigurator.h:53
edm::UnscheduledConfigurator::m_aux
UnscheduledAuxiliary const * m_aux
Definition:
UnscheduledConfigurator.h:58
edm::UnscheduledConfigurator::operator=
const UnscheduledConfigurator & operator=(const UnscheduledConfigurator &)=delete
Generated for CMSSW Reference Manual by
1.8.16