#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::auto_ptr< T > iService) |
create a service token that holds the service defined by iService More... | |
template<typename T > | |
static ServiceToken | createContaining (std::auto_ptr< T > iService, ServiceToken iToken, serviceregistry::ServiceLegacy iLegacy) |
template<typename T > | |
static ServiceToken | createContaining (boost::shared_ptr< serviceregistry::ServiceWrapper< T > > iWrapper) |
create a service token that holds the service held by iWrapper More... | |
template<typename T > | |
static ServiceToken | createContaining (boost::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 &) |
ServiceRegistry () | |
ServiceRegistry (ServiceRegistry const &) | |
ServiceToken | setContext (ServiceToken const &iNewToken) |
void | unsetContext (ServiceToken const &iOldToken) |
Private Attributes | |
boost::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 39 of file ServiceRegistry.cc.
|
private |
Definition at line 32 of file ServiceRegistry.cc.
|
private |
|
inlinestatic |
create a service token that holds the service defined by iService
Definition at line 100 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config, and wrapper.
Referenced by edm::ScheduleItems::addCPRandTNS(), spf::SherpackFetcher::FnFileGet(), and main().
|
inlinestatic |
Definition at line 109 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config, and wrapper.
|
inlinestatic |
create a service token that holds the service held by iWrapper
Definition at line 123 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config.
|
inlinestatic |
Definition at line 130 of file ServiceRegistry.h.
References HDQMDatabaseProducer::config.
|
static |
Definition at line 81 of file ServiceRegistry.cc.
References createSet(), and edm::makeParameterSets().
Referenced by HPDNoiseLibraryReader::initializeServices().
|
static |
Definition at line 91 of file ServiceRegistry.cc.
Referenced by createServicesFromConfig(), cond::FWIncantation::FWIncantation(), evf::FWEPWrapper::init(), evf::iDie::initFramework(), cond::Utilities::initializePluginManager(), and edm::ScheduleItems::initServices().
|
static |
Definition at line 98 of file ServiceRegistry.cc.
|
inline |
Definition at line 63 of file ServiceRegistry.h.
References manager_, edm::errors::NotFound, and edm::Exception::throwThis().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), and betterConfigParser.BetterConfigParser::getResultingSection().
|
static |
Definition at line 108 of file ServiceRegistry.cc.
Referenced by edm::ScheduleItems::initSchedule(), edm::Service< SiStripCondObjBuilderFromDb >::isAvailable(), edm::Service< SiStripCondObjBuilderFromDb >::operator*(), edm::Service< SiStripCondObjBuilderFromDb >::operator->(), and edm::ServiceRegistry::Operate::~Operate().
|
inline |
Definition at line 73 of file ServiceRegistry.h.
References manager_, edm::errors::NotFound, and edm::Exception::throwThis().
|
private |
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 72 of file ServiceRegistry.cc.
References manager_.
|
private |
Definition at line 57 of file ServiceRegistry.cc.
References edm::ServiceToken::manager_, and manager_.
|
private |
Definition at line 64 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 92 of file HcalPedestalValidator.cc.
|
friend |
Definition at line 57 of file ServiceRegistry.h.
|
private |
Definition at line 152 of file ServiceRegistry.h.
Referenced by get(), isAvailable(), presentToken(), setContext(), and unsetContext().