The Registry of all workers that where requested Holds all instances of workers. In this implementation, Workers are owned. More...
#include "edm/WorkerRegistry.h"
Public Member Functions | |
void | clear () |
void | deleteModule (std::string const &moduleLabel) |
Deletes the module of the Worker, but the Worker continues to exist. More... | |
Worker const * | get (std::string const &moduleLabel) const |
Worker * | getWorker (WorkerParams const &p, std::string const &moduleLabel) |
Retrieve the particular instance of the worker. More... | |
WorkerRegistry & | operator= (WorkerRegistry const &)=delete |
WorkerRegistry (std::shared_ptr< ActivityRegistry > areg) | |
WorkerRegistry (std::shared_ptr< ActivityRegistry > areg, std::shared_ptr< ModuleRegistry > iModReg) | |
WorkerRegistry (WorkerRegistry &&)=default | |
WorkerRegistry (WorkerRegistry const &)=delete | |
~WorkerRegistry () | |
Private Types | |
typedef std::map< std::string, edm::propagate_const< std::shared_ptr< Worker > > > | WorkerMap |
the container of workers More... | |
Private Attributes | |
std::shared_ptr< ActivityRegistry > | actReg_ |
WorkerMap | m_workerMap |
internal map of registered workers (owned). More... | |
edm::propagate_const< std::shared_ptr< ModuleRegistry > > | modRegistry_ |
The Registry of all workers that where requested Holds all instances of workers. In this implementation, Workers are owned.
Definition at line 38 of file WorkerRegistry.h.
|
private |
the container of workers
Definition at line 65 of file WorkerRegistry.h.
|
explicit |
Definition at line 18 of file WorkerRegistry.cc.
edm::WorkerRegistry::WorkerRegistry | ( | std::shared_ptr< ActivityRegistry > | areg, |
std::shared_ptr< ModuleRegistry > | iModReg | ||
) |
Definition at line 21 of file WorkerRegistry.cc.
edm::WorkerRegistry::~WorkerRegistry | ( | ) |
Definition at line 24 of file WorkerRegistry.cc.
|
default |
|
delete |
void edm::WorkerRegistry::clear | ( | void | ) |
Definition at line 26 of file WorkerRegistry.cc.
References m_workerMap.
void edm::WorkerRegistry::deleteModule | ( | std::string const & | moduleLabel | ) |
Deletes the module of the Worker, but the Worker continues to exist.
Definition at line 56 of file WorkerRegistry.cc.
References Exception, m_workerMap, and HerwigMaxPtPartonFilter_cfi::moduleLabel.
Referenced by edm::WorkerManager::deleteModuleIfExists().
Worker const * edm::WorkerRegistry::get | ( | std::string const & | moduleLabel | ) | const |
Retrieve particular instance of the worker without creating it If one doesn't exist, returns nullptr
Definition at line 48 of file WorkerRegistry.cc.
References m_workerMap, and HerwigMaxPtPartonFilter_cfi::moduleLabel.
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), submitPVValidationJobs.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), edm::WorkerManager::deleteModuleIfExists(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), submitPVValidationJobs.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
Worker * edm::WorkerRegistry::getWorker | ( | WorkerParams const & | p, |
std::string const & | moduleLabel | ||
) |
Retrieve the particular instance of the worker.
If the worker with that set of parameters does not exist, create it
Definition at line 28 of file WorkerRegistry.cc.
References actReg_, m_workerMap, modRegistry_, HerwigMaxPtPartonFilter_cfi::moduleLabel, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by edm::WorkerManager::getWorker().
|
delete |
|
private |
Definition at line 71 of file WorkerRegistry.h.
Referenced by getWorker().
|
private |
internal map of registered workers (owned).
Definition at line 70 of file WorkerRegistry.h.
Referenced by clear(), deleteModule(), get(), and getWorker().
|
private |
Definition at line 67 of file WorkerRegistry.h.
Referenced by getWorker().