#include <WorkerMaker.h>
Public Member Functions | |
WorkerMaker () | |
Private Member Functions | |
virtual const std::string & | baseType () const |
virtual void | fillDescriptions (ConfigurationDescriptions &iDesc) const |
virtual void | implSwapModule (Worker *, ParameterSet const &) |
virtual std::auto_ptr< Worker > | makeWorker (WorkerParams const &p, ModuleDescription const &md) const |
Definition at line 45 of file WorkerMaker.h.
edm::WorkerMaker< T >::WorkerMaker | ( | ) | [explicit] |
Definition at line 57 of file WorkerMaker.h.
{ }
const std::string & edm::WorkerMaker< T >::baseType | ( | ) | const [private, virtual] |
void edm::WorkerMaker< T >::fillDescriptions | ( | ConfigurationDescriptions & | iDesc | ) | const [private, virtual] |
void edm::WorkerMaker< T >::implSwapModule | ( | Worker * | w, |
ParameterSet const & | p | ||
) | [private, virtual] |
Implements edm::Maker.
Definition at line 77 of file WorkerMaker.h.
References edm::Worker::description(), module(), L1TEmulatorMonitor_cff::p, and svgfig::template().
{ typedef T UserType; typedef typename UserType::ModuleType ModuleType; typedef typename UserType::WorkerType WorkerType; WorkerType* wt = dynamic_cast<WorkerType*>(w); assert(0!=wt); std::auto_ptr<ModuleType> module(WorkerType::template makeModule<UserType>(w->description(), p)); wt->setModule(module); }
std::auto_ptr< Worker > edm::WorkerMaker< T >::makeWorker | ( | WorkerParams const & | p, |
ModuleDescription const & | md | ||
) | const [private, virtual] |
Implements edm::Maker.
Definition at line 66 of file WorkerMaker.h.
References module(), edm::WorkerParams::pset_, and svgfig::template().
{ typedef T UserType; typedef typename UserType::ModuleType ModuleType; typedef typename UserType::WorkerType WorkerType; std::auto_ptr<ModuleType> module(WorkerType::template makeModule<UserType>(md, *p.pset_)); return std::auto_ptr<Worker>(new WorkerType(module, md, p)); }