Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
dynar-- for trace mgmt
[simgrid.git] / src / surf / trace_mgr.hpp
index 8fb7dd8..26f2213 100644 (file)
@@ -9,19 +9,15 @@
 
 #include "xbt/heap.h"
 #include "simgrid/forward.h"
+#include <vector>
 
 SG_BEGIN_DECL()
-#include "xbt/heap.h"
 
 typedef struct tmgr_event {
   double delta;
   double value;
 } s_tmgr_event_t, *tmgr_event_t;
 
-typedef struct tmgr_trace {
-  xbt_dynar_t event_list;
-} s_tmgr_trace_t;
-
 /* Iterator within a trace */
 typedef struct tmgr_trace_iterator {
   tmgr_trace_t trace;
@@ -74,8 +70,10 @@ XBT_PUBLIC_CLASS trace_iterator {
 XBT_PUBLIC_CLASS trace {
 public:
   /**  Creates an empty trace */
-  trace() {}
-  virtual ~trace() {}
+  trace();
+  virtual ~trace();
+//private:
+  std::vector<s_tmgr_event_t> event_list;
 };
 
 /** @brief Future Event Set (collection of iterators over the traces)