#include <CallbackProxy.h>
Public Types | |
using | RecordType = RecordT |
using | smart_pointer_traits = produce::smart_pointer_traits< DataT > |
using | ValueType = typename smart_pointer_traits::type |
Public Member Functions | |
CallbackProxy (std::shared_ptr< CallbackT > &iCallback) | |
CallbackProxy (const CallbackProxy &)=delete | |
void const * | getAfterPrefetchImpl () const final |
void | invalidateCache () override |
const CallbackProxy & | operator= (const CallbackProxy &)=delete |
void | prefetchAsyncImpl (WaitingTaskHolder iWaitTask, const EventSetupRecordImpl &iRecord, const DataKey &, EventSetupImpl const *iEventSetupImpl, ServiceToken const &iToken, edm::ESParentContext const &iParent) final |
~CallbackProxy () final | |
Public Member Functions inherited from edm::eventsetup::DataProxy | |
bool | cacheIsValid () const |
DataProxy () | |
DataProxy (DataProxy const &)=delete | |
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 () |
Private Attributes | |
edm::propagate_const< std::shared_ptr< CallbackT > > | callback_ |
DataT | data_ {} |
Additional Inherited Members | |
Protected Member Functions inherited from edm::eventsetup::DataProxy | |
void | clearCacheIsValid () |
virtual void | invalidateTransientCache () |
Definition at line 39 of file CallbackProxy.h.
using edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::RecordType = RecordT |
Definition at line 43 of file CallbackProxy.h.
using edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::smart_pointer_traits = produce::smart_pointer_traits<DataT> |
Definition at line 41 of file CallbackProxy.h.
using edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::ValueType = typename smart_pointer_traits::type |
Definition at line 42 of file CallbackProxy.h.
|
inline |
Definition at line 45 of file CallbackProxy.h.
|
inlinefinal |
Definition at line 52 of file CallbackProxy.h.
References edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::callback_.
|
delete |
|
inlinefinalvirtual |
used to retrieve the data from the implementation. The data is then cached locally.
Implements edm::eventsetup::DataProxy.
Definition at line 67 of file CallbackProxy.h.
References edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::data_, and edm::eventsetup::produce::smart_pointer_traits< T >::getPointer().
|
inlineoverridevirtual |
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 69 of file CallbackProxy.h.
References edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::callback_, and edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::data_.
|
delete |
|
inlinefinalvirtual |
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 57 of file CallbackProxy.h.
References cms::cuda::assert(), and edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::callback_.
|
private |
Definition at line 80 of file CallbackProxy.h.
Referenced by edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::invalidateCache(), edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::prefetchAsyncImpl(), and edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::~CallbackProxy().
|
private |
Definition at line 79 of file CallbackProxy.h.
Referenced by edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::getAfterPrefetchImpl(), and edm::eventsetup::CallbackProxy< CallbackT, RecordT, DataT >::invalidateCache().