![]() |
![]() |
#include <DataProxy.h>
Public Member Functions | |
bool | cacheIsValid () const |
DataProxy () | |
DataProxy (DataProxy const &)=delete | |
void | doGet (EventSetupRecordImpl const &, DataKey const &, bool iTransiently, ActivityRegistry const *, EventSetupImpl const *) const |
void const * | get (EventSetupRecordImpl const &, DataKey const &, bool iTransiently, ActivityRegistry const *, EventSetupImpl const *) const |
virtual void | initializeForNewIOV () |
void | invalidate () |
DataProxy const & | operator= (DataProxy const &)=delete |
ComponentDescription const * | providerDescription () const |
returns the description of the DataProxyProvider which owns this Proxy More... | |
void | resetIfTransient () |
void | setProviderDescription (ComponentDescription const *iDesc) |
virtual | ~DataProxy () |
Protected Member Functions | |
void | clearCacheIsValid () |
virtual void const * | getImpl (EventSetupRecordImpl const &, DataKey const &iKey, EventSetupImpl const *)=0 |
virtual void | invalidateCache ()=0 |
virtual void | invalidateTransientCache () |
Private Attributes | |
void const * | cache_ |
std::atomic< bool > | cacheIsValid_ |
ComponentDescription const * | description_ |
std::atomic< bool > | nonTransientAccessRequested_ |
Description: Base class for data Proxies held by a EventSetupRecord
Usage: This class defines the interface used to handle retrieving data from an EventSetup Record.
Definition at line 38 of file DataProxy.h.
Definition at line 32 of file DataProxy.cc.
|
delete |
Definition at line 38 of file DataProxy.cc.
|
inline |
Definition at line 46 of file DataProxy.h.
References cacheIsValid_.
Referenced by get(), and edm::eventsetup::EventSetupRecordImpl::wasGotten().
|
protected |
Definition at line 40 of file DataProxy.cc.
References cache_, cacheIsValid_, and nonTransientAccessRequested_.
Referenced by invalidate(), and resetIfTransient().
void DataProxy< RecordT, DataT, Initializer >::doGet | ( | EventSetupRecordImpl const & | iRecord, |
DataKey const & | iKey, | ||
bool | iTransiently, | ||
ActivityRegistry const * | activityRegistry, | ||
EventSetupImpl const * | iEventSetupImpl | ||
) | const |
Definition at line 122 of file DataProxy.cc.
References get().
Referenced by edm::eventsetup::EventSetupRecordImpl::doGet().
const void * DataProxy< RecordT, DataT, Initializer >::get | ( | EventSetupRecordImpl const & | iRecord, |
DataKey const & | iKey, | ||
bool | iTransiently, | ||
ActivityRegistry const * | activityRegistry, | ||
EventSetupImpl const * | iEventSetupImpl | ||
) | const |
Definition at line 93 of file DataProxy.cc.
References cache_, cacheIsValid(), cacheIsValid_, edm::esGlobalMutex(), nonTransientAccessRequested_, and providerDescription().
Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), rrapi.RRApi::columns(), rrapi.RRApi::count(), rrapi.RRApi::data(), doGet(), betterConfigParser.BetterConfigParser::getCompares(), edm::eventsetup::EventSetupRecordImpl::getFromProxy(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), rrapi.RRApi::reports(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), rrapi.RRApi::templates(), and rrapi.RRApi::workspaces().
|
protectedpure virtual |
This is the function which does the real work of getting the data if it is not already cached. The returning 'void const*' must point to an instance of the class type corresponding to the type designated in iKey. So if iKey refers to a base class interface the pointer must be a pointer to that base class interface and not a pointer to an inheriting class instance.
Implemented in edm::test::TestDataProxy< T >, edm::eventsetup::DataProxyTemplate< RecordT, DataT >, and edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >.
|
inlinevirtual |
Reimplemented in DataProxy< RecordT, DataT, Initializer >.
Definition at line 72 of file DataProxy.h.
|
inline |
Definition at line 63 of file DataProxy.h.
References clearCacheIsValid(), and invalidateCache().
|
protectedpure virtual |
indicates that the Proxy should invalidate any cached information as that information has 'expired' (i.e. we have moved to a new IOV)
Implemented in edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >, DataProxy< RecordT, DataT, Initializer >, and edm::test::TestDataProxy< T >.
Referenced by invalidate(), and invalidateTransientCache().
|
protectedvirtual |
indicates that the Proxy should invalidate any cached information as that information was accessed transiently and therefore is not intended to be kept over the entire IOV. Default is to call invalidateCache().
Reimplemented in DataProxy< RecordT, DataT, Initializer >.
Definition at line 53 of file DataProxy.cc.
References invalidateCache().
Referenced by resetIfTransient().
|
inline |
returns the description of the DataProxyProvider which owns this Proxy
Definition at line 60 of file DataProxy.h.
References description_.
Referenced by edm::eventsetup::EventSetupRecordImpl::add(), edm::eventsetup::EventSetupRecordImpl::doGet(), get(), edm::eventsetup::EventSetupRecordImpl::getFromProxy(), and edm::eventsetup::EventSetupRecordImpl::providerDescription().
void DataProxy< RecordT, DataT, Initializer >::resetIfTransient | ( | ) |
Definition at line 46 of file DataProxy.cc.
References clearCacheIsValid(), invalidateTransientCache(), and nonTransientAccessRequested_.
|
inline |
|
mutableprivate |
Definition at line 100 of file DataProxy.h.
Referenced by clearCacheIsValid(), and get().
|
mutableprivate |
Definition at line 101 of file DataProxy.h.
Referenced by cacheIsValid(), clearCacheIsValid(), and get().
|
private |
Definition at line 99 of file DataProxy.h.
Referenced by providerDescription(), and setProviderDescription().
|
mutableprivate |
Definition at line 134 of file DataProxy.h.
Referenced by clearCacheIsValid(), get(), and resetIfTransient().