X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2983e2d4248b6cdb5c7df3b1bd9b35540e7a32b8..6ae07464eeacbd09ee8b4ff9630c78d62bfe699e:/include/simgrid/s4u/host.hpp diff --git a/include/simgrid/s4u/host.hpp b/include/simgrid/s4u/host.hpp index 3583defaa0..ac7174d64c 100644 --- a/include/simgrid/s4u/host.hpp +++ b/include/simgrid/s4u/host.hpp @@ -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) */