18 HLTGlobalStatus::~HLTGlobalStatus() =
default;
20 HLTGlobalStatus::HLTGlobalStatus(std::size_t
const n ) : paths_(n) {}
57 bool at_least_one_ran =
false;
58 bool at_least_one_accepted =
false;
60 for (
auto const& path_status :
paths_) {
61 auto const s(path_status.state());
63 at_least_one_ran =
true;
65 at_least_one_accepted =
true;
70 if (!at_least_one_ran) {
73 return at_least_one_accepted;
99 return paths_.at(i).wasrun();
105 return paths_.at(i).accept();
111 return paths_.at(i).error();
117 return paths_.at(i).state();
123 return paths_.at(i).index();
130 atomic_thread_fence(memory_order_seq_cst);
136 vector<string> text{
"n"s,
"1"s,
"0"s,
"e"s};
137 unsigned const n(hlt.
size());
138 for (
auto i = 0U; i <
n; ++i) {
139 ost << text.at(hlt.
state(i));
unsigned index(unsigned const i) const
std::vector< HLTPathStatus > paths_
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
HLTGlobalStatus & operator=(HLTGlobalStatus const &)
HLTGlobalStatus(std::size_t n=0)
hlt::HLTState state(unsigned const i) const
HLTPathStatus const & at(unsigned const i) const
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
decltype(auto) constexpr empty(T &&obj)
ADL-aware version of std::empty.