-/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2022. 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 <iostream>
#include <queue>
+#include <string_view>
-namespace simgrid {
-namespace mc {
+namespace simgrid::mc {
class UnfoldingEvent;
using EventSet = std::deque<UnfoldingEvent*>;
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
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