Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Move VisitedState stuffs in their own .c file
[simgrid.git] / src / mc / VisitedState.hpp
1 /* Copyright (c) 2007-2016. The SimGrid Team.
2  * All rights reserved.                                                     */
3
4 /* This program is free software; you can redistribute it and/or modify it
5  * under the terms of the license (GNU LGPL) which comes with this package. */
6
7 #ifndef SIMGRID_MC_VISITED_STATE_HPP
8 #define SIMGRID_MC_VISITED_STATE_HPP
9
10 #include <cstddef>
11
12 #include <memory>
13
14 #include "src/mc/mc_snapshot.h"
15
16 namespace simgrid {
17 namespace mc {
18
19 struct XBT_PRIVATE VisitedState {
20   std::shared_ptr<simgrid::mc::Snapshot> system_state = nullptr;
21   std::size_t heap_bytes_used = 0;
22   int nb_processes = 0;
23   int num = 0;
24   int other_num = 0; // dot_output for
25
26   VisitedState();
27   ~VisitedState();
28 };
29
30 extern XBT_PRIVATE std::vector<std::unique_ptr<simgrid::mc::VisitedState>> visited_states;
31 XBT_PRIVATE std::unique_ptr<simgrid::mc::VisitedState> is_visited_state(simgrid::mc::State* graph_state, bool compare_snpashots);
32
33 }
34 }
35
36 #endif