X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f99742cfa61b34fb17e50f7b9e7e2b41f5f25595..ef753f4a6180065885bb97ce20ea62f4cc6bcc1c:/src/mc/udpor_global.hpp diff --git a/src/mc/udpor_global.hpp b/src/mc/udpor_global.hpp index 89d4c8f9a3..1b3e90ea78 100644 --- a/src/mc/udpor_global.hpp +++ b/src/mc/udpor_global.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-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. */ @@ -8,9 +8,11 @@ #include #include +#include -namespace simgrid { -namespace mc { +/* TODO: many method declared in this module are not implemented */ + +namespace simgrid::mc { class UnfoldingEvent; using EventSet = std::deque; @@ -74,7 +76,6 @@ public: bool isImmediateConflict1(UnfoldingEvent* evt, UnfoldingEvent* otherEvt) const; bool conflictWithConfig(UnfoldingEvent* event, Configuration const& config) const; - /* TODO: implement */ bool operator==(const UnfoldingEvent&) const { return false; }; void print() const; @@ -82,7 +83,7 @@ public: inline void set_state_id(int sid) { state_id = sid; } inline std::string get_transition_tag() const { return transition_tag; } - inline void set_transition_tag(std::string const& tr_tag) { transition_tag = tr_tag; } + inline void set_transition_tag(std::string_view tr_tag) { transition_tag = tr_tag; } private: EventSet causes; // used to store directed ancestors of event e @@ -93,6 +94,5 @@ private: bool transition_is_ISend(const UnfoldingEvent* testedEvt, const UnfoldingEvent* SdRcEvt) const; bool check_tr_concern_same_comm(bool& chk1, bool& chk2, UnfoldingEvent* evt1, UnfoldingEvent* evt2) const; }; -} // namespace mc -} // namespace simgrid +} // namespace simgrid::mc #endif