X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab8e2fe95944fb998edd6e95d1022a05175c4f92..639e88c95c355661b56405f608d54c27d24ac7c5:/src/mc/mc_record.h?ds=sidebyside diff --git a/src/mc/mc_record.h b/src/mc/mc_record.h index db7636ffac..7901b67e07 100644 --- a/src/mc/mc_record.h +++ b/src/mc/mc_record.h @@ -22,27 +22,14 @@ #include +#include "src/mc/Transition.hpp" + namespace simgrid { namespace mc { -/** An element in the recorded path - * - * At each decision point, we need to record which process transition - * is trigerred and potentially which value is associated with this - * transition. The value is used to find which communication is triggerred - * in things like waitany and for associating a given value of MC_random() - * calls. - */ -struct RecordTraceElement { - int pid = 0; - int value = 0; - RecordTraceElement() {} - RecordTraceElement(int pid, int value) : pid(pid), value(value) {} -}; - -typedef std::vector RecordTrace; +typedef std::vector RecordTrace; -/** Convert a string representation of the path into a array of `simgrid::mc::RecordTraceElement` +/** Convert a string representation of the path into a array of `simgrid::mc::Transition` */ XBT_PRIVATE RecordTrace parseRecordTrace(const char* data); XBT_PRIVATE std::string traceToString(simgrid::mc::RecordTrace const& trace);