Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simplification: if jedule headers are loaded, jedule is here and needed
[simgrid.git] / include / simgrid / s4u / Host.hpp
index 87f6cbb..4d9f607 100644 (file)
@@ -98,7 +98,15 @@ public:
 
   const char* get_property(const char* key);
   void set_property(std::string key, std::string value);
-  std::map<std::string, std::string>* getProperties();
+  std::unordered_map<std::string, std::string>* get_properties();
+  XBT_ATTRIB_DEPRECATED_v323("Please use Host::get_properties()") std::map<std::string, std::string>* getProperties()
+  {
+    std::map<std::string, std::string>* res             = new std::map<std::string, std::string>();
+    std::unordered_map<std::string, std::string>* props = get_properties();
+    for (auto const& kv : *props)
+      res->insert(kv);
+    return res;
+  }
 
   double getSpeed();
   double get_available_speed();