Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
One more std::unique_ptr.
[simgrid.git] / src / kernel / resource / DiskImpl.hpp
index 29841c20c4d41e6f2b273586039410e5070f6f98..db59a0baa4af81dc29ab6791d70f605998c87cff 100644 (file)
@@ -64,6 +64,7 @@ public:
   ~DiskImpl() override;
 
   /** @brief Public interface */
+  const s4u::Disk* get_iface() const { return &piface_; }
   s4u::Disk* get_iface() { return &piface_; }
   s4u::Host* get_host() const { return host_; }
   void set_host(s4u::Host* host) { host_ = host; }
@@ -74,7 +75,7 @@ public:
   lmm::Constraint* get_write_constraint() const { return constraint_write_; }
 
   /** @brief Check if the Storage is used (if an action currently uses its resources) */
-  bool is_used() override;
+  bool is_used() const override;
   void apply_event(profile::Event* event, double value) override;
   void turn_on() override;
   void turn_off() override;