LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "ServiceCacheEntry.h"
Public Member Functions | |
ServiceCacheEntry (fhicl::ParameterSet const &pset, std::unique_ptr< ServiceHelperBase > &&helper) | |
ServiceCacheEntry (fhicl::ParameterSet const &pset, std::unique_ptr< ServiceHelperBase > &&helper, ServiceCacheEntry const &impl) | |
ServiceCacheEntry (std::shared_ptr< ServiceWrapperBase > premade_service, std::unique_ptr< ServiceHelperBase > &&helper) | |
std::shared_ptr< ServiceWrapperBase > | getService (ActivityRegistry ®, SharedResources &resources, ServiceStack &creationOrder) const |
void | forceCreation (ActivityRegistry ®, SharedResources &resources) const |
fhicl::ParameterSet const & | getParameterSet () const |
template<typename T > | |
T & | get (ActivityRegistry ®, SharedResources &resources, ServiceStack &creationOrder) const |
void | registerProducts (ProductDescriptions &productsToProduce, ProducingServiceSignals &signals, ModuleDescription const &md) |
bool | is_impl () const |
bool | is_interface () const |
ServiceScope | serviceScope () const |
Private Member Functions | |
std::shared_ptr< ServiceWrapperBase > | makeService (ActivityRegistry ®, SharedResources &resources) const |
void | createService (ActivityRegistry ®, SharedResources &resources, ServiceStack &creationOrder) const |
std::shared_ptr< ServiceWrapperBase > | convertService () const |
Private Attributes | |
fhicl::ParameterSet | config_ {} |
std::unique_ptr< ServiceHelperBase > | helper_ |
std::shared_ptr< ServiceWrapperBase > | service_ {} |
cet::exempt_ptr< ServiceCacheEntry const > const | interface_impl_ {nullptr} |
Definition at line 24 of file ServiceCacheEntry.h.
art::detail::ServiceCacheEntry::ServiceCacheEntry | ( | fhicl::ParameterSet const & | pset, |
std::unique_ptr< ServiceHelperBase > && | helper | ||
) |
Definition at line 22 of file ServiceCacheEntry.cc.
References helper_.
art::detail::ServiceCacheEntry::ServiceCacheEntry | ( | fhicl::ParameterSet const & | pset, |
std::unique_ptr< ServiceHelperBase > && | helper, | ||
ServiceCacheEntry const & | impl | ||
) |
Definition at line 28 of file ServiceCacheEntry.cc.
References helper_, and interface_impl_.
art::detail::ServiceCacheEntry::ServiceCacheEntry | ( | std::shared_ptr< ServiceWrapperBase > | premade_service, |
std::unique_ptr< ServiceHelperBase > && | helper | ||
) |
Definition at line 37 of file ServiceCacheEntry.cc.
References service_.
|
private |
Definition at line 154 of file ServiceCacheEntry.cc.
References art::detail::ServiceInterfaceImplHelper::convert(), is_impl(), and service_.
|
private |
Definition at line 141 of file ServiceCacheEntry.cc.
References is_impl(), makeService(), and service_.
Referenced by getService().
void art::detail::ServiceCacheEntry::forceCreation | ( | ActivityRegistry & | reg, |
SharedResources & | resources | ||
) | const |
Definition at line 116 of file ServiceCacheEntry.cc.
References is_impl(), makeService(), and service_.
T & art::detail::ServiceCacheEntry::get | ( | ActivityRegistry & | reg, |
SharedResources & | resources, | ||
ServiceStack & | creationOrder | ||
) | const |
Definition at line 77 of file ServiceCacheEntry.h.
References getService(), and art::detail::ServiceLGRHelper::retrieve().
fhicl::ParameterSet const & art::detail::ServiceCacheEntry::getParameterSet | ( | ) | const |
Definition at line 135 of file ServiceCacheEntry.cc.
References config_.
std::shared_ptr< ServiceWrapperBase > art::detail::ServiceCacheEntry::getService | ( | ActivityRegistry & | reg, |
SharedResources & | resources, | ||
ServiceStack & | creationOrder | ||
) | const |
Definition at line 44 of file ServiceCacheEntry.cc.
References createService(), interface_impl_, is_interface(), and service_.
Referenced by get().
bool art::detail::ServiceCacheEntry::is_impl | ( | ) | const |
Definition at line 175 of file ServiceCacheEntry.cc.
References is_interface().
Referenced by convertService(), createService(), forceCreation(), and makeService().
bool art::detail::ServiceCacheEntry::is_interface | ( | ) | const |
Definition at line 169 of file ServiceCacheEntry.cc.
References helper_.
Referenced by getService(), and is_impl().
|
private |
Definition at line 69 of file ServiceCacheEntry.cc.
References art::errors::BadExceptionType, config_, art::errors::Configuration, e, fhicl::ParameterSet::get(), helper_, is_impl(), art::detail::ServiceLGMHelper::make(), art::errors::OtherArt, art::errors::StdException, art::errors::Unknown, and fhicl::detail::validationException::what().
Referenced by createService(), and forceCreation().
void art::detail::ServiceCacheEntry::registerProducts | ( | ProductDescriptions & | productsToProduce, |
ProducingServiceSignals & | signals, | ||
ModuleDescription const & | md | ||
) |
Definition at line 127 of file ServiceCacheEntry.cc.
References service_.
ServiceScope art::detail::ServiceCacheEntry::serviceScope | ( | ) | const |
Definition at line 163 of file ServiceCacheEntry.cc.
References helper_.
|
private |
Definition at line 69 of file ServiceCacheEntry.h.
Referenced by getParameterSet(), and makeService().
|
private |
Definition at line 70 of file ServiceCacheEntry.h.
Referenced by is_interface(), makeService(), ServiceCacheEntry(), and serviceScope().
|
private |
Definition at line 72 of file ServiceCacheEntry.h.
Referenced by getService(), and ServiceCacheEntry().
|
mutableprivate |
Definition at line 71 of file ServiceCacheEntry.h.
Referenced by convertService(), createService(), forceCreation(), getService(), registerProducts(), and ServiceCacheEntry().