1 #ifndef Framework_CallbackProxy_h 2 #define Framework_CallbackProxy_h 35 namespace eventsetup {
37 template<
class CallbackT,
class RecordT,
class DataT>
50 iCallback->holdOntoPointer(&
data_) ; }
52 DataT*
dummy(
nullptr);
61 assert(iRecord.
key() == RecordT::keyForClass());
62 (*callback_)(
static_cast<const record_type&
>(iRecord));
virtual EventSetupRecordKey key() const =0
edm::propagate_const< std::shared_ptr< CallbackT > > callback_
produce::smart_pointer_traits< DataT >::type value_type
const void * getImpl(const EventSetupRecord &iRecord, const DataKey &) override
void invalidateCache() override
const CallbackProxy & operator=(const CallbackProxy &)=delete
CallbackProxy(std::shared_ptr< CallbackT > &iCallback)
~CallbackProxy() override