Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Reduce scope for loop variables.
[simgrid.git] / src / surf / network_interface.hpp
index 7c6d82484779c77aa5deab7360b5b85293370931..9cb6cc7621886d1c8642d3d61788bc8ad8f3c660 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