19 : modRegistry_(
std::make_shared<
ModuleRegistry>(resolverMaker)), m_workerMap(), actReg_(areg) {}
22 : modRegistry_(modReg), m_workerMap(), actReg_(areg) {}
36 auto workerPtr = modulePtr->makeWorker(
p.actions_);
38 workerPtr->setActivityRegistry(
actReg_);
42 std::shared_ptr<Worker>(workerPtr.release());
45 return (workerIt->second.get());
51 return workerIt->second;
60 <<
"WorkerRegistry::deleteModule() Trying to delete the module of a Worker with label " <<
moduleLabel 61 <<
" but no such Worker exists in the WorkerRegistry. Please contact framework developers.";
63 workerIt->second->clearModule();
std::shared_ptr< ActivityRegistry > actReg_
Worker const * get(std::string const &moduleLabel) const
void deleteModule(std::string const &moduleLabel)
Deletes the module of the Worker, but the Worker continues to exist.
WorkerMap m_workerMap
internal map of registered workers (owned).
edm::propagate_const< std::shared_ptr< ModuleRegistry > > modRegistry_
Worker * getWorker(WorkerParams const &p, std::string const &moduleLabel)
Retrieve the particular instance of the worker.
WorkerRegistry(std::shared_ptr< ActivityRegistry > areg, ModuleTypeResolverMaker const *resolverMaker)