From 1441f67b94ade26aca84f3f08e35917c26f1b8fd Mon Sep 17 00:00:00 2001 From: eazimi Date: Tue, 12 Jan 2021 12:21:24 +0100 Subject: [PATCH] EvtSetTools class deifined --- src/mc/udpor_global.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/mc/udpor_global.hpp b/src/mc/udpor_global.hpp index f44c988608..bb5610312d 100644 --- a/src/mc/udpor_global.hpp +++ b/src/mc/udpor_global.hpp @@ -15,6 +15,20 @@ namespace mc { class UnfoldingEvent; using EventSet = std::deque; +class EvtSetTools { +public: + static bool contains(const EventSet events, const UnfoldingEvent* e); + static UnfoldingEvent* find(const EventSet events, const UnfoldingEvent* e); + static void subtract(EventSet& events, EventSet const& otherSet); + static bool depends(EventSet const& events, EventSet const& otherSet); + static bool isEmptyIntersection(EventSet evtS1, EventSet evtS2); + static EventSet makeUnion(EventSet s1, EventSet s2); + static void pushBack(EventSet& events, UnfoldingEvent* e); + static void remove(EventSet& events, UnfoldingEvent* e); + static EventSet minus(EventSet events, UnfoldingEvent* e); + static EventSet plus(EventSet events, UnfoldingEvent* e); +}; + typedef struct s_evset_in { EventSet causuality_events; EventSet cause; -- 2.20.1