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 (boost::shared_ptr< ActivityRegistry > areg) | |
WorkerRegistry (boost::shared_ptr< ActivityRegistry > areg, boost::shared_ptr< ModuleRegistry > iModReg) | |
WorkerRegistry (WorkerRegistry const &)=delete | |
~WorkerRegistry () | |
Private Types | |
typedef std::map< std::string, boost::shared_ptr< Worker > > | WorkerMap |
the container of workers More... | |
Private Attributes | |
boost::shared_ptr < ActivityRegistry > | actReg_ |
WorkerMap | m_workerMap |
internal map of registered workers (owned). More... | |
boost::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 37 of file WorkerRegistry.h.
|
private |
the container of workers
Definition at line 58 of file WorkerRegistry.h.
|
explicit |
Definition at line 18 of file WorkerRegistry.cc.
edm::WorkerRegistry::WorkerRegistry | ( | boost::shared_ptr< ActivityRegistry > | areg, |
boost::shared_ptr< ModuleRegistry > | iModReg | ||
) |
Definition at line 25 of file WorkerRegistry.cc.
edm::WorkerRegistry::~WorkerRegistry | ( | ) |
Definition at line 33 of file WorkerRegistry.cc.
|
delete |
void edm::WorkerRegistry::clear | ( | void | ) |
Definition at line 36 of file WorkerRegistry.cc.
References m_workerMap.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
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 40 of file WorkerRegistry.cc.
References edm::WorkerParams::actions_, actReg_, m_workerMap, modRegistry_, edm::WorkerParams::preallocate_, edm::WorkerParams::processConfiguration_, edm::WorkerParams::pset_, and edm::WorkerParams::reg_.
Referenced by edm::WorkerManager::getWorker().
|
delete |
|
private |
Definition at line 64 of file WorkerRegistry.h.
Referenced by getWorker().
|
private |
internal map of registered workers (owned).
Definition at line 63 of file WorkerRegistry.h.
Referenced by clear(), and getWorker().
|
private |
Definition at line 60 of file WorkerRegistry.h.
Referenced by getWorker().