39 std::vector<ProcessConfiguration> pcs;
40 pcs.push_back(makeProcessConfiguration(
"p1",
"m1"));
41 pcs.push_back(makeProcessConfiguration(
"p2",
"m2"));
42 pcs.push_back(makeProcessConfiguration(
"pA",
"mA"));
43 pcs.push_back(makeProcessConfiguration(
"pB",
"mB"));
45 auto makeProcessHistory = [&pcs](std::size_t
const first,
46 std::size_t
const last) {
53 std::vector<ProcessHistory> histories;
54 histories.push_back(makeProcessHistory(0, 1));
55 histories.push_back(makeProcessHistory(0, 3));
56 histories.push_back(makeProcessHistory(2, 1));
57 histories.push_back(makeProcessHistory(2, 3));
61 std::vector<std::function<void()>> tasks;
63 return [&
h] { ProcessHistoryRegistry::emplace(
h.id(),
h); };
65 hep::concurrency::simultaneous_function_spawner sfs{tasks};
72 std::vector<ProcessHistory> retrievedHistories(histories.size());
73 std::vector<std::function<void()>> tasks;
76 [&retrievedHistories, &tasks](std::size_t
const i,
auto const&
h) {
77 auto&
entry = retrievedHistories[i];
78 tasks.push_back([&
h, &
entry] {
84 hep::concurrency::simultaneous_function_spawner sfs{tasks};
85 BOOST_TEST(histories == retrievedHistories);
void for_all_with_index(FwdCont &, Func)
BOOST_TEST_REQUIRE(static_cast< bool >(inFile))
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
auto transform_all(Container &, OutputIt, UnaryOp)
auto const & get(AssnsNode< L, R, D > const &r)
void push_back(const_reference t)