surf::HostImpl* const pimpl_;
public:
- explicit Host(const std::string& name, surf::HostImpl* pimpl) : pimpl_(pimpl), name_(name) {}
+ explicit Host(surf::HostImpl* pimpl) : pimpl_(pimpl) {}
protected:
virtual ~Host(); // Call destroy() instead of manually deleting it.
static Host* current();
/** Retrieves the name of that host as a C++ string */
- xbt::string const& get_name() const { return name_; };
+ xbt::string const& get_name() const;
/** Retrieves the name of that host as a C string */
- const char* get_cname() const { return name_.c_str(); };
+ const char* get_cname() const;
kernel::routing::NetPoint* get_netpoint() const { return pimpl_netpoint_; }
surf::HostImpl* get_impl() const { return pimpl_; }
private:
- /* Host name must be kept in the s4u side to be accessible by MC process */
- xbt::string name_{"noname"};
kernel::routing::NetPoint* pimpl_netpoint_ = nullptr;
public: