1 #ifndef Framework_Callback_h
2 #define Framework_Callback_h
29 namespace eventsetup {
37 template<
typename TRecord>
39 void pre(
const TRecord&) {}
40 void post(
const TRecord&) {}
47 =CallbackSimpleDecorator<TRecord> >
54 const TDecorator& iDec = TDecorator()) :
86 setData(iReturn, static_cast<typename type::head_type*>(0), static_cast<const typename type::tail_type *>(0));
89 template<
class RemainingContainerT,
class DataT,
class ProductsT>
90 void setData(ProductsT& iProducts,
const RemainingContainerT*,
const DataT*) {
92 if(0 != temp) {
copyFromTo(iProducts, *temp); }
93 setData(iProducts, static_cast< const typename RemainingContainerT::head_type *>(0),
94 static_cast< const typename RemainingContainerT::tail_type *>(0));
96 template<
class DataT,
class ProductsT>
101 if(0 != temp) {
copyFromTo(iProducts, *temp); }
void storeReturnedValues(TReturn iReturn)
void setData(ProductsT &iProducts, const RemainingContainerT *, const DataT *)
void holdOntoPointer(DataT *iData)
std::vector< void * > proxyData_
void pre(const TRecord &)
void setData(ProductsT &iProducts, const produce::Null *, const DataT *)
TReturn(T::* method_type)(const TRecord &)
Callback(T *iProd, method_type iMethod, const TDecorator &iDec=TDecorator())
void post(const TRecord &)
void operator()(const TRecord &iRecord)
bool wasCalledForThisRecord_
void copyFromTo(FromT &iFrom, ToT &iTo)
const Callback & operator=(const Callback &)
tuple size
Write out results.