A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[mc] Let the Checker give us the current record trace
[simgrid.git]
/
src
/
mc
/
Checker.hpp
diff --git
a/src/mc/Checker.hpp
b/src/mc/Checker.hpp
index
cf3e37a
..
db9c2ae
100644
(file)
--- a/
src/mc/Checker.hpp
+++ b/
src/mc/Checker.hpp
@@
-9,8
+9,10
@@
#include <functional>
#include <memory>
#include <functional>
#include <memory>
+#include <string>
#include "src/mc/mc_forward.hpp"
#include "src/mc/mc_forward.hpp"
+#include "src/mc/mc_record.h"
namespace simgrid {
namespace mc {
namespace simgrid {
namespace mc {
@@
-28,7
+30,7
@@
namespace mc {
class Checker {
Session* session_;
public:
class Checker {
Session* session_;
public:
- Checker(Session& session)
: session_(&session) {}
+ Checker(Session& session)
;
// No copy:
Checker(Checker const&) = delete;
// No copy:
Checker(Checker const&) = delete;
@@
-37,6
+39,14
@@
public:
virtual ~Checker();
virtual int run() = 0;
virtual ~Checker();
virtual int run() = 0;
+ // Give me your internal state:
+
+ /** Show the current trace/stack
+ *
+ * Could this be handled in the Session/ModelChecker instead?
+ */
+ virtual RecordTrace getRecordTrace();
+
protected:
Session& getSession() { return *session_; }
};
protected:
Session& getSession() { return *session_; }
};