int Host::get_pstate_count() const
{
- return this->pimpl_cpu->get_pstates_count();
+ return this->pimpl_cpu->get_pstate_count();
}
/**
}
/** Get the properties assigned to a host */
-std::map<std::string, std::string>* Host::getProperties()
+std::unordered_map<std::string, std::string>* Host::get_properties()
{
- return simgrid::simix::simcall([this] { return this->pimpl_->getProperties(); });
+ return simgrid::simix::simcall([this] { return this->pimpl_->get_properties(); });
}
/** Retrieve the property value (or nullptr if not set) */
const char* Host::get_property(const char* key)
{
- return this->pimpl_->getProperty(key);
+ return this->pimpl_->get_property(key);
}
void Host::set_property(std::string key, std::string value)
{
- simgrid::simix::simcall([this, key, value] { this->pimpl_->setProperty(key, value); });
+ simgrid::simix::simcall([this, key, value] { this->pimpl_->set_property(key, value); });
}
/** @brief Get the peak processor speed (in flops/s), at the specified pstate */
/** @brief Returns the number of core of the processor. */
int Host::get_core_count()
{
- return this->pimpl_cpu->get_cores_count();
+ return this->pimpl_cpu->get_core_count();
}
/** @brief Set the pstate at which the host should run */
xbt_dict_t sg_host_get_properties(sg_host_t host)
{
xbt_dict_t as_dict = xbt_dict_new_homogeneous(xbt_free_f);
- std::map<std::string, std::string>* props = host->getProperties();
+ std::unordered_map<std::string, std::string>* props = host->get_properties();
if (props == nullptr)
return nullptr;
for (auto const& elm : *props) {
XBT_INFO("Displaying host %s", host->get_cname());
XBT_INFO(" - speed: %.0f", host->getSpeed());
XBT_INFO(" - available speed: %.2f", sg_host_get_available_speed(host));
- std::map<std::string, std::string>* props = host->getProperties();
+ std::unordered_map<std::string, std::string>* props = host->get_properties();
if (not props->empty()) {
XBT_INFO(" - properties:");