1 #ifndef Framework_CallbackProxy_h
2 #define Framework_CallbackProxy_h
23 #include "boost/shared_ptr.hpp"
34 namespace eventsetup {
36 template<
class CallbackT,
class RecordT,
class DataT>
49 iCallback->holdOntoPointer(&
data_) ; }
51 DataT* dummy(
nullptr);
60 assert(iRecord.
key() == RecordT::keyForClass());
61 (*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 &)
CallbackProxy(boost::shared_ptr< CallbackT > &iCallback)
produce::smart_pointer_traits< DataT >::type value_type
boost::shared_ptr< CallbackT > callback_