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));
const CallbackProxy & operator=(const CallbackProxy &)
virtual EventSetupRecordKey key() const =0
const void * getImpl(const EventSetupRecord &iRecord, const DataKey &)
edm::propagate_const< std::shared_ptr< CallbackT > > callback_
produce::smart_pointer_traits< DataT >::type value_type
CallbackProxy(std::shared_ptr< CallbackT > &iCallback)