X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/61a8bb9423361cde6dfc57a00815e5fc99320ca4..5f4fec5323389b31285cd4e19a6abda90e63a555:/src/mc/explo/udpor/EventSet.hpp diff --git a/src/mc/explo/udpor/EventSet.hpp b/src/mc/explo/udpor/EventSet.hpp index 26a910a7d6..4c64746982 100644 --- a/src/mc/explo/udpor/EventSet.hpp +++ b/src/mc/explo/udpor/EventSet.hpp @@ -16,7 +16,7 @@ namespace simgrid::mc::udpor { class EventSet { private: - std::unordered_set events_; + std::unordered_set events_; public: EventSet() = default; @@ -25,31 +25,31 @@ public: EventSet& operator=(EventSet&&) = default; EventSet(EventSet&&) = default; explicit EventSet(Configuration&& config); - explicit EventSet(std::unordered_set&& raw_events) : events_(raw_events) {} - explicit EventSet(std::initializer_list event_list) : events_(std::move(event_list)) {} + explicit EventSet(std::unordered_set&& raw_events) : events_(raw_events) {} + explicit EventSet(std::initializer_list event_list) : events_(std::move(event_list)) {} auto begin() const { return this->events_.begin(); } auto end() const { return this->events_.end(); } auto cbegin() const { return this->events_.cbegin(); } auto cend() const { return this->events_.cend(); } - void remove(UnfoldingEvent*); + void remove(const UnfoldingEvent*); void subtract(const EventSet&); void subtract(const Configuration&); - EventSet subtracting(UnfoldingEvent*) const; + EventSet subtracting(const UnfoldingEvent*) const; EventSet subtracting(const EventSet&) const; EventSet subtracting(const Configuration&) const; - void insert(UnfoldingEvent*); + void insert(const UnfoldingEvent*); void form_union(const EventSet&); void form_union(const Configuration&); - EventSet make_union(UnfoldingEvent*) const; + EventSet make_union(const UnfoldingEvent*) const; EventSet make_union(const EventSet&) const; EventSet make_union(const Configuration&) const; size_t size() const; bool empty() const; - bool contains(UnfoldingEvent*) const; + bool contains(const UnfoldingEvent*) const; bool contains(const History&) const; bool is_subset_of(const EventSet&) const;