-/* Copyright (c) 2008-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2008-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "udpor_global.hpp"
#include "xbt/log.h"
+#include <algorithm>
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_udpor_global, mc, "udpor_global");
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc::udpor {
-EventSet EvtSetTools::makeUnion(EventSet s1, EventSet s2)
-{
- EventSet res = s1;
- for (auto evt : s2)
- EvtSetTools::pushBack(res, evt);
- return res;
-}
+// TODO: Implement methods on EventSet as appropriate
-void EvtSetTools::pushBack(EventSet& events, UnfoldingEvent* e)
-{
- if (!EvtSetTools::contains(events, e))
- events.push_back(e);
-}
-
-bool EvtSetTools::contains(const EventSet events, const UnfoldingEvent* e)
-{
- for (auto evt : events)
- if (*evt == *e)
- return true;
- return false;
-}
-
-} // namespace mc
-} // namespace simgrid
+} // namespace simgrid::mc::udpor