#include <DataProxyTemplate.h>
Public Types | |
typedef RecordT | record_type |
typedef DataT | value_type |
Public Member Functions | |
DataProxyTemplate () | |
void | prefetchAsyncImpl (WaitingTaskHolder iTask, const EventSetupRecordImpl &iRecord, const DataKey &iKey, EventSetupImpl const *iEventSetupImpl, edm::ServiceToken const &iToken, edm::ESParentContext const &iParent) override |
Public Member Functions inherited from edm::eventsetup::DataProxy | |
bool | cacheIsValid () const |
DataProxy () | |
DataProxy (DataProxy const &)=delete | |
void const * | get (EventSetupRecordImpl const &, DataKey const &, bool iTransiently, ActivityRegistry const *, EventSetupImpl const *, ESParentContext const &) const |
void const * | getAfterPrefetch (const EventSetupRecordImpl &iRecord, const DataKey &iKey, bool iTransiently) const |
virtual void | initializeForNewIOV () |
void | invalidate () |
DataProxy const & | operator= (DataProxy const &)=delete |
void | prefetchAsync (WaitingTaskHolder, EventSetupRecordImpl const &, DataKey const &, EventSetupImpl const *, ServiceToken const &, ESParentContext const &) const |
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 | invalidateCache () override |
virtual const DataT * | make (const RecordT &, const DataKey &)=0 |
Protected Member Functions inherited from edm::eventsetup::DataProxy | |
void | clearCacheIsValid () |
virtual void const * | getAfterPrefetchImpl () const =0 |
virtual void | invalidateTransientCache () |
Private Attributes | |
std::atomic< bool > | prefetching_ {false} |
WaitingTaskList | taskList_ |
Definition at line 53 of file DataProxyTemplate.h.
typedef RecordT edm::eventsetup::DataProxyTemplate< RecordT, DataT >::record_type |
Definition at line 56 of file DataProxyTemplate.h.
typedef DataT edm::eventsetup::DataProxyTemplate< RecordT, DataT >::value_type |
Definition at line 55 of file DataProxyTemplate.h.
|
inline |
Definition at line 58 of file DataProxyTemplate.h.
|
inlineoverrideprotectedvirtual |
indicates that the Proxy should invalidate any cached information as that information has 'expired' (i.e. we have moved to a new IOV)
Implements edm::eventsetup::DataProxy.
Definition at line 88 of file DataProxyTemplate.h.
|
protectedpure virtual |
Implemented in edmtest::TestDataProxyTemplateJ.
Referenced by edm::eventsetup::DataProxyTemplate< ESTestRecordJ, ESTestDataJ >::prefetchAsyncImpl().
|
inlineoverridevirtual |
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.
Implements edm::eventsetup::DataProxy.
Definition at line 60 of file DataProxyTemplate.h.
|
private |
Definition at line 97 of file DataProxyTemplate.h.
Referenced by edm::eventsetup::DataProxyTemplate< ESTestRecordJ, ESTestDataJ >::invalidateCache(), and edm::eventsetup::DataProxyTemplate< ESTestRecordJ, ESTestDataJ >::prefetchAsyncImpl().
|
private |
Definition at line 96 of file DataProxyTemplate.h.
Referenced by edm::eventsetup::DataProxyTemplate< ESTestRecordJ, ESTestDataJ >::invalidateCache(), and edm::eventsetup::DataProxyTemplate< ESTestRecordJ, ESTestDataJ >::prefetchAsyncImpl().