Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ns3: inline a function used only once
[simgrid.git] / src / surf / network_interface.hpp
index 7c6d824..9cb6cc7 100644 (file)
@@ -144,7 +144,7 @@ public:
   void turn_on() override;
   void turn_off() override;
 
-  void on_bandwidth_change();
+  void on_bandwidth_change() const;
 
   virtual void
   set_bandwidth_profile(kernel::profile::Profile* profile); /*< setup the profile file with bandwidth events
@@ -200,8 +200,8 @@ public:
   double lat_current_ = {};
   double sharing_penalty_ = {};
   double rate_       = {};
-  s4u::Host& get_src() { return src_; }
-  s4u::Host& get_dst() { return dst_; }
+  s4u::Host& get_src() const { return src_; }
+  s4u::Host& get_dst() const { return dst_; }
 };
 } // namespace resource
 } // namespace kernel