Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Really fix the issue.
[simgrid.git] / include / simgrid / s4u / host.hpp
index 3583def..ac7174d 100644 (file)
@@ -44,12 +44,11 @@ XBT_PUBLIC_CLASS Host :
 
 public:
   explicit Host(const char *name);
+
   /** Host destruction logic */
-protected:
-  ~Host(); // TODO, make me private
 private:
+  ~Host();
   bool currentlyDestroying_ = false;
-
 public:
   void destroy();
 
@@ -72,6 +71,7 @@ public:
   void turnOff();
   /** Returns if that host is currently up and running */
   bool isOn();
+  /** Returns if that host is currently down and offline */
   bool isOff() { return !isOn(); }
 
   double speed();
@@ -102,6 +102,7 @@ private:
 
 public:
   // TODO, this could be a unique_ptr
+  surf::HostImpl* pimpl_ = nullptr;
   /** DO NOT USE DIRECTLY (@todo: these should be protected, once our code is clean) */
   surf::Cpu     *pimpl_cpu = nullptr;
   /** DO NOT USE DIRECTLY (@todo: these should be protected, once our code is clean) */