X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2659419ab673729eb0af805fff60051764b30b04..9d7dca1d2de1e6d67027e4ba33fefe1eb09550e3:/src/mc/VisitedState.hpp diff --git a/src/mc/VisitedState.hpp b/src/mc/VisitedState.hpp index 4e0c4fb9ba..13691af2e3 100644 --- a/src/mc/VisitedState.hpp +++ b/src/mc/VisitedState.hpp @@ -23,12 +23,18 @@ struct XBT_PRIVATE VisitedState { int num = 0; int other_num = 0; // dot_output for - VisitedState(); + VisitedState(unsigned long state_number); ~VisitedState(); }; -extern XBT_PRIVATE std::vector> visited_states; -XBT_PRIVATE std::unique_ptr is_visited_state(simgrid::mc::State* graph_state, bool compare_snpashots); +class XBT_PRIVATE VisitedStates { + std::vector> states_; +public: + void clear() { states_.clear(); } + std::unique_ptr addVisitedState(unsigned long state_number, simgrid::mc::State* graph_state, bool compare_snpashots); +private: + void prune(); +}; } }