24 class CallbackWrapper {
30 prod_(iProd), callback_(iCallback), reg_(iReg), mdesc_(iDesc),
31 lastSize_(iProd->typeLabelList().
size()) {}
33 void operator()(
const BranchDescription& iDesc) {
38 void addToRegistry() {
41 if(lastSize_!=plist.size()){
42 ProducerBase::TypeLabelList::const_iterator pStart = plist.begin();
43 advance(pStart, lastSize_);
45 lastSize_ = plist.size();
51 boost::function<void(const BranchDescription&)> callback_;
52 ProductRegistry* reg_;
53 ModuleDescription mdesc_;
54 unsigned int lastSize_;
71 bool isListener =
false;
ProductRegistryHelper::TypeLabelList TypeLabelList
void registerProducts(ProducerBase *, ProductRegistry *, ModuleDescription const &)
TypeLabelList & typeLabelList()
used by the fwk to register the list of products of this module
boost::function< void(const BranchDescription &)> callWhenNewProductsRegistered_
helper::RootFunctionHelper< F, args >::root_function function(F &f)
void callForEachBranch(T const &iFunc)
boost::function< void(const BranchDescription &)> registrationCallback() const
used by the fwk to register list of products
author Stefano ARGIRO author Bill Tanenbaum
static void addToRegistry(TypeLabelList::const_iterator const &iBegin, TypeLabelList::const_iterator const &iEnd, ModuleDescription const &iDesc, ProductRegistry &iReg, bool iIsListener=false)
tuple size
Write out results.