LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "ServiceRegistry.h"
Classes | |
class | Operate |
Public Types | |
using | ParameterSets = std::vector< fhicl::ParameterSet > |
Static Public Member Functions | |
template<typename T > | |
static bool | isAvailable () |
static ServiceToken | createSet (ParameterSets const &, ActivityRegistry &) |
Private Member Functions | |
ServiceRegistry (ServiceRegistry const &)=delete | |
ServiceRegistry & | operator= (ServiceRegistry const &)=delete |
ServiceToken | presentToken () const |
ServiceToken | setContext (ServiceToken const &iNewToken) |
void | unsetContext (ServiceToken const &iOldToken) |
template<typename T , typename = std::enable_if_t<detail::ServiceHelper<T>::scope_val != ServiceScope::PER_SCHEDULE>> | |
T & | get () const |
template<typename T , typename = std::enable_if_t<detail::ServiceHelper<T>::scope_val == ServiceScope::PER_SCHEDULE>> | |
T & | get (ScheduleID sID) const |
ServiceRegistry ()=default | |
Static Private Member Functions | |
static ServiceRegistry & | instance () |
Private Attributes | |
cet::LibraryManager | lm_ {Suffixes::service()} |
std::shared_ptr< ServicesManager > | manager_ {nullptr} |
Friends | |
class | Operate |
template<typename T , art::ServiceScope > | |
class | ServiceHandle |
Definition at line 26 of file ServiceRegistry.h.
using art::ServiceRegistry::ParameterSets = std::vector<fhicl::ParameterSet> |
Definition at line 65 of file ServiceRegistry.h.
|
privatedelete |
|
privatedefault |
Referenced by get().
|
static |
Definition at line 35 of file ServiceRegistry.cc.
References instance(), and lm_.
Referenced by art::ServiceDirector::ServiceDirector().
|
inlineprivate |
Definition at line 83 of file ServiceRegistry.h.
References manager_, art::PER_SCHEDULE, and art::errors::ServiceNotFound.
Referenced by art::ServiceHandle< art::FileTransfer >::ServiceHandle(), and art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >::ServiceHandle().
|
inlineprivate |
Definition at line 96 of file ServiceRegistry.h.
References manager_, art::errors::ServiceNotFound, and ServiceRegistry().
|
staticprivate |
Definition at line 43 of file ServiceRegistry.cc.
Referenced by createSet(), isAvailable(), art::ServiceRegistry::Operate::Operate(), art::ServiceHandle< art::FileTransfer >::ServiceHandle(), art::ServiceHandle< T, art::ServiceScope::PER_SCHEDULE >::ServiceHandle(), and art::ServiceRegistry::Operate::~Operate().
|
inlinestatic |
Definition at line 55 of file ServiceRegistry.h.
References instance(), manager_, and art::errors::ServiceNotFound.
|
privatedelete |
|
private |
Definition at line 29 of file ServiceRegistry.cc.
References manager_.
|
private |
Definition at line 15 of file ServiceRegistry.cc.
References art::ServiceToken::manager_, and manager_.
Referenced by art::ServiceRegistry::Operate::Operate().
|
private |
Definition at line 23 of file ServiceRegistry.cc.
References art::ServiceToken::manager_, and manager_.
Referenced by art::ServiceRegistry::Operate::~Operate().
|
friend |
Definition at line 49 of file ServiceRegistry.h.
|
friend |
Definition at line 51 of file ServiceRegistry.h.
|
private |
Definition at line 108 of file ServiceRegistry.h.
Referenced by createSet().
|
private |
Definition at line 109 of file ServiceRegistry.h.
Referenced by get(), isAvailable(), presentToken(), setContext(), and unsetContext().