#include <ServiceRegistry.h>
Classes | |
class | Operate |
Public Member Functions | |
template<typename T > | |
T & | get () const |
template<typename T > | |
bool | isAvailable () const |
ServiceToken | presentToken () const |
virtual | ~ServiceRegistry () |
Static Public Member Functions | |
template<typename T > | |
static ServiceToken | createContaining (std::unique_ptr< T > iService) |
create a service token that holds the service defined by iService More... | |
template<typename T > | |
static ServiceToken | createContaining (std::unique_ptr< T > iService, ServiceToken iToken, serviceregistry::ServiceLegacy iLegacy) |
template<typename T > | |
static ServiceToken | createContaining (std::shared_ptr< serviceregistry::ServiceWrapper< T > > iWrapper) |
create a service token that holds the service held by iWrapper More... | |
template<typename T > | |
static ServiceToken | createContaining (std::shared_ptr< serviceregistry::ServiceWrapper< T > > iWrapper, ServiceToken iToken, serviceregistry::ServiceLegacy iLegacy) |
static ServiceToken | createServicesFromConfig (std::string const &config) |
static ServiceToken | createSet (std::vector< ParameterSet > &) |
static ServiceToken | createSet (std::vector< ParameterSet > &, ServiceToken, serviceregistry::ServiceLegacy, bool associate=true) |
static ServiceRegistry & | instance () |
Private Member Functions | |
ServiceRegistry const & | operator= (ServiceRegistry const &)=delete |
ServiceRegistry () | |
ServiceRegistry (ServiceRegistry const &)=delete | |
ServiceToken | setContext (ServiceToken const &iNewToken) |
void | unsetContext (ServiceToken const &iOldToken) |
Private Attributes | |
std::shared_ptr< serviceregistry::ServicesManager > | manager_ |
Friends | |
class | edm::FwkImpl |
int | main (int argc, char *argv[]) |
class | Operate |
Definition at line 37 of file ServiceRegistry.h.
|
virtual |
Definition at line 38 of file ServiceRegistry.cc.
|
private |
Definition at line 31 of file ServiceRegistry.cc.
|
privatedelete |
|
inlinestatic |
create a service token that holds the service defined by iService
Definition at line 100 of file ServiceRegistry.h.
References looper::config, eostools::move(), and wrapper.
Referenced by edm::ScheduleItems::addCPRandTNS(), main(), and topLevelPSet().
|
inlinestatic |
Definition at line 108 of file ServiceRegistry.h.
References looper::config, eostools::move(), and wrapper.
|
inlinestatic |
create a service token that holds the service held by iWrapper
Definition at line 119 of file ServiceRegistry.h.
References looper::config.
|
inlinestatic |
|
static |
Definition at line 80 of file ServiceRegistry.cc.
References createSet(), edm::makeParameterSets(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
static |
Definition at line 90 of file ServiceRegistry.cc.
Referenced by createServicesFromConfig(), edm::ScheduleItems::initServices(), and cond::Utilities::run().
|
static |
Definition at line 97 of file ServiceRegistry.cc.
|
inline |
Definition at line 63 of file ServiceRegistry.h.
References edm::errors::NotFound, and edm::Exception::throwThis().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), edm::ScheduleItems::initSchedule(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
|
static |
Definition at line 107 of file ServiceRegistry.cc.
Referenced by edm::beginGlobalTransitionAsync(), edm::beginStreamTransitionAsync(), edm::Worker::doWork(), edm::Worker::doWorkNoPrefetchingAsync(), edm::endGlobalTransitionAsync(), edm::endStreamTransitionAsync(), edm::StreamSchedule::finishedPaths(), edm::ScheduleItems::initSchedule(), edm::Service< SiStripCondObjBuilderFromDb >::isAvailable(), edm::Service< SiStripCondObjBuilderFromDb >::operator*(), edm::Service< SiStripCondObjBuilderFromDb >::operator->(), edm::InputProductResolver::prefetchAsync_(), edm::NoProcessProductResolver::prefetchAsync_(), edm::StreamSchedule::processOneEventAsync(), edm::GlobalSchedule::processOneGlobalAsync(), edm::StreamSchedule::processOneStreamAsync(), edm::ReducedProvenanceReader::ReducedProvenanceReader(), edm::Path::runNextWorkerAsync(), evf::EvFBuildingThrottle::start(), and edm::ServiceRegistry::Operate::~Operate().
|
inline |
Definition at line 73 of file ServiceRegistry.h.
References instance, edm::errors::NotFound, AlCaHLTBitMon_QueryRunRegistry::string, and edm::Exception::throwThis().
|
privatedelete |
ServiceToken ServiceRegistry::presentToken | ( | ) | const |
The token can be passed to another thread in order to have the same services available in the other thread.
Definition at line 71 of file ServiceRegistry.cc.
References manager_.
Referenced by edm::beginGlobalTransitionAsync(), edm::beginStreamTransitionAsync(), edm::Worker::doWork(), edm::Worker::doWorkNoPrefetchingAsync(), edm::endGlobalTransitionAsync(), edm::endStreamTransitionAsync(), edm::StreamSchedule::finishedPaths(), edm::InputProductResolver::prefetchAsync_(), edm::StreamSchedule::processOneEventAsync(), edm::GlobalSchedule::processOneGlobalAsync(), edm::StreamSchedule::processOneStreamAsync(), edm::ReducedProvenanceReader::ReducedProvenanceReader(), edm::Path::runNextWorkerAsync(), and evf::EvFBuildingThrottle::start().
|
private |
Definition at line 56 of file ServiceRegistry.cc.
References edm::ServiceToken::manager_, and manager_.
|
private |
Definition at line 63 of file ServiceRegistry.cc.
References edm::ServiceToken::manager_, and manager_.
Referenced by edm::ServiceRegistry::Operate::~Operate().
|
friend |
Definition at line 55 of file ServiceRegistry.h.
|
friend |
Definition at line 9 of file print_TrackerMap.cc.
|
friend |
Definition at line 57 of file ServiceRegistry.h.
|
private |
Definition at line 146 of file ServiceRegistry.h.
Referenced by presentToken(), setContext(), and unsetContext().