namespace s4u {
-void XBT_ATTRIB_DEPRECATED_v322(
- "simgrid::s4u::getStorageList() is deprecated in favor of Engine::getAllStorages(). Please switch before v3.22")
- getStorageList(std::map<std::string, Storage*>* whereTo)
+void getStorageList(std::map<std::string, Storage*>* whereTo)
{
for (auto const& s : simgrid::s4u::Engine::getInstance()->get_all_storages())
whereTo->insert({s->get_name(), s});
Storage::Storage(std::string name, surf::StorageImpl* pimpl) : pimpl_(pimpl), name_(name)
{
- simgrid::s4u::Engine::getInstance()->add_storage(name, this);
+ simgrid::s4u::Engine::getInstance()->storage_register(name, this);
}
Storage* Storage::byName(std::string name)