public:
explicit Host(const char *name);
+
/** Host destruction logic */
-protected:
- ~Host(); // TODO, make me private
private:
+ ~Host();
bool currentlyDestroying_ = false;
-
public:
void destroy();
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();
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) */