Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Add 'tag' parameter for instr::Pt2PtTI class
[simgrid.git] / src / instr / instr_private.hpp
index 0004fa9..5d6d12e 100644 (file)
@@ -17,6 +17,7 @@
 #include "src/instr/instr_paje_values.hpp"
 #include "src/internal_config.h"
 #include "xbt/graph.h"
 #include "src/instr/instr_paje_values.hpp"
 #include "src/internal_config.h"
 #include "xbt/graph.h"
+
 #include <iomanip> /** std::setprecision **/
 #include <map>
 #include <memory>
 #include <iomanip> /** std::setprecision **/
 #include <map>
 #include <memory>
@@ -112,16 +113,20 @@ public:
 };
 
 class Pt2PtTIData : public TIData {
 };
 
 class Pt2PtTIData : public TIData {
+  int tag;
 public:
 public:
+  explicit Pt2PtTIData(std::string name, int endpoint, int size, int tag, std::string datatype)
+      : TIData(name, endpoint, size, datatype), tag(tag) {};
+
   explicit Pt2PtTIData(std::string name, int endpoint, int size, std::string datatype)
   explicit Pt2PtTIData(std::string name, int endpoint, int size, std::string datatype)
-      : TIData(name, endpoint, size, datatype){};
+      : TIData(name, endpoint, size, datatype), tag(0) {};
   std::string print() override
   {
     std::stringstream stream;
     stream << getName() << " ";
     if (endpoint >= 0)
       stream << endpoint << " ";
   std::string print() override
   {
     std::stringstream stream;
     stream << getName() << " ";
     if (endpoint >= 0)
       stream << endpoint << " ";
-    stream << send_size << " " << send_type;
+    stream << tag << " " << send_size << " " << send_type;
     return stream.str();
   }
   std::string display_size() override { return std::to_string(send_size); }
     return stream.str();
   }
   std::string display_size() override { return std::to_string(send_size); }