15class SubConditionEventOccurred {
16 NON_DEFAULT_CONSTRUCTIBLE(SubConditionEventOccurred)
17 COPYABLE(SubConditionEventOccurred)
18 MOVEABLE(SubConditionEventOccurred)
20 explicit SubConditionEventOccurred(VIPRA::idx event,
bool negate)
21 : _event(event), _negate(negate)
25 void operator()(
Simpack pack,
const VIPRA::idxVec& ,
26 std::vector<Target>
const& , std::vector<bool>& met,
27 std::vector<bool>
const& , BoolOp )
const
30 std::fill(met.begin(), met.end(), ! pack.context.events[_event].has_occurred());
33 std::fill(met.begin(), met.end(), pack.context.events[_event].has_occurred());