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 () |
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 57 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 | ) |
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 63 of file WorkerRegistry.h.
Referenced by getWorker().
|
private |
internal map of registered workers (owned).
Definition at line 62 of file WorkerRegistry.h.
Referenced by clear(), and getWorker().
|
private |
Definition at line 59 of file WorkerRegistry.h.
Referenced by getWorker().