Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add 'explicit'.
[simgrid.git] / include / simgrid / s4u / Link.hpp
index 451accc..134a1f8 100644 (file)
@@ -25,7 +25,7 @@ extern template class XBT_PUBLIC xbt::Extendable<s4u::Link>;
 
 namespace s4u {
 /**
- * @rst
+ * @beginrst
  * A Link represents the network facilities between :cpp:class:`hosts <simgrid::s4u::Host>`.
  * @endrst
  */
@@ -90,7 +90,7 @@ public:
   void turn_on();
   bool is_on() const;
   void turn_off();
-
+  void seal();
   /** Setup the profile with states events (ON or OFF). The profile must contain boolean values. */
   void set_state_profile(kernel::profile::Profile* profile);
   /** Setup the profile with bandwidth events (peak speed changes due to external load).
@@ -101,7 +101,9 @@ public:
   void set_latency_profile(kernel::profile::Profile* profile);
 
   const char* get_property(const std::string& key) const;
-  void set_property(const std::string& key, const std::string& value);
+  Link* set_property(const std::string& key, const std::string& value);
+  const std::unordered_map<std::string, std::string>* get_properties() const;
+  Link* set_properties(const std::unordered_map<std::string, std::string>& properties);
 
   /* The signals */
   /** @brief Callback signal fired when a new Link is created */