* and actors can retrieve the host on which they run using @ref simgrid::s4u::Host::current() or
* @ref simgrid::s4u::this_actor::get_host().
*/
* and actors can retrieve the host on which they run using @ref simgrid::s4u::Host::current() or
* @ref simgrid::s4u::this_actor::get_host().
*/
-class XBT_PUBLIC Host : public simgrid::xbt::Extendable<Host> {
- friend simgrid::vm::VMModel; // Use the pimpl_cpu to compute the VM sharing
- friend simgrid::vm::VirtualMachineImpl; // creates the the pimpl_cpu
+class XBT_PUBLIC Host : public xbt::Extendable<Host> {
+ friend vm::VMModel; // Use the pimpl_cpu to compute the VM sharing
+ friend vm::VirtualMachineImpl; // creates the the pimpl_cpu
/*** Called when the speed of the machine is changed (called AFTER the change)
* (either because of a pstate switch or because of an external load event coming from the profile) */
/*** Called when the speed of the machine is changed (called AFTER the change)
* (either because of a pstate switch or because of an external load event coming from the profile) */
/** Retrieve a host from its name, or return nullptr */
static Host* by_name_or_null(const std::string& name);
/** Retrieve a host from its name, or die */
/** Retrieve a host from its name, or return nullptr */
static Host* by_name_or_null(const std::string& name);
/** Retrieve a host from its name, or die */
/** Retrieves the name of that host as a C string */
const char* get_cname() const { return name_.c_str(); }
/** Retrieves the name of that host as a C string */
const char* get_cname() const { return name_.c_str(); }
- * This call does nothing if the host is already on. If it was off, all actors which were
- * marked 'autorestart' on that host will be restarted automatically (note that this may differ
- * from the actors that were initially running on the host).
+ * This call does nothing if the host is already on. If it was off, all actors which were marked 'autorestart' on that
+ * host will be restarted automatically (note that this may differ from the actors that were initially running on the
+ * host).
- * All other Host's properties are left unchanged; in particular, the pstate is left
- * unchanged and not reset to its initial value.
+ * All other Host's properties are left unchanged; in particular, the pstate is left unchanged and not reset to its
+ * initial value.
#ifndef DOXYGEN
/** @deprecated See Host::get_speed() */
XBT_ATTRIB_DEPRECATED_v323("Please use Host::get_speed() instead.") double getSpeed() { return get_speed(); }
#ifndef DOXYGEN
/** @deprecated See Host::get_speed() */
XBT_ATTRIB_DEPRECATED_v323("Please use Host::get_speed() instead.") double getSpeed() { return get_speed(); }
XBT_ATTRIB_DEPRECATED_v323("Please use Host::get_attached_storages() instead.") void getAttachedStorages(
std::vector<const char*>* storages);
#endif
XBT_ATTRIB_DEPRECATED_v323("Please use Host::get_attached_storages() instead.") void getAttachedStorages(
std::vector<const char*>* storages);
#endif