1 /* Copyright (c) 2008-2022. The SimGrid Team. All rights reserved. */
3 /* This program is free software; you can redistribute it and/or modify it
4 * under the terms of the license (GNU LGPL) which comes with this package. */
6 #include "udpor_global.hpp"
10 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_udpor_global, mc, "udpor_global");
15 EventSet EvtSetTools::makeUnion(const EventSet& s1, const EventSet& s2)
19 EvtSetTools::pushBack(res, evt);
23 void EvtSetTools::pushBack(EventSet& events, UnfoldingEvent* e)
25 if (not EvtSetTools::contains(events, e))
29 bool EvtSetTools::contains(const EventSet& events, const UnfoldingEvent* e)
31 return std::any_of(events.begin(), events.end(), [e](const UnfoldingEvent* evt) { return *evt == *e; });
35 } // namespace simgrid