1 #ifndef art_Framework_Core_RPManager_h 2 #define art_Framework_Core_RPManager_h 22 template <
typename RET,
typename... ARGS>
31 template <
typename... ARGS>
38 std::map<std::string, std::vector<std::unique_ptr<RPWorker>>>
rpmap_;
41 template <
typename... ARGS>
45 for (
auto& path :
rpmap_) {
46 for (
auto&
w : path.second) {
47 (
w->rp().*mfunc)(std::forward<ARGS>(
args)...);
std::map< std::string, std::vector< std::unique_ptr< RPWorker > > > rpmap_
std::function< void(RPWorker &)> on_rpworker_t
void for_each_RPWorker(on_rpworker_t wfunc)
RPManager(fhicl::ParameterSet const &ps)
static constexpr double ps
void invoke(invoke_function_t< void, ARGS... > mfunc, ARGS &&...args)
RET(ResultsProducer::*)(ARGS...) invoke_function_t