1 #ifndef art_Framework_Principal_ExecutionCounts_h 2 #define art_Framework_Principal_ExecutionCounts_h 30 template <
typename... ARGS>
33 template <
typename FIELD>
34 std::size_t times()
const;
36 template <
typename HEAD_FIELD>
39 template <
typename HEAD_FIELD,
typename... TAIL_FIELDS>
40 std::enable_if_t<(
sizeof...(TAIL_FIELDS) > 0)> increment();
42 void update(
bool const rc);
61 template <
typename... ARGS>
62 template <
typename FIELD>
66 return std::get<FIELD>(counts_).
value;
69 template <
typename... ARGS>
70 template <
typename FIELD>
74 ++std::get<FIELD>(counts_).
value;
77 template <
typename... ARGS>
78 template <
typename HEAD_FIELD,
typename... TAIL_FIELDS>
79 std::enable_if_t<(
sizeof...(TAIL_FIELDS) > 0)>
82 increment<HEAD_FIELD>();
83 increment<TAIL_FIELDS...>();
86 template <
typename... ARGS>
91 increment<stats::Passed>();
93 increment<stats::Failed>();
97 template <
typename... ARGS>
101 counts_ = std::tuple<ARGS...>();
std::size_t times() const
std::tuple< ARGS... > counts_
void update(bool const rc)