* under the terms of the license (GNU LGPL) which comes with this package. */
#include "../surf/StorageImpl.hpp"
+#include "simgrid/s4u/Host.hpp"
#include "simgrid/s4u/Storage.hpp"
#include "simgrid/simix.hpp"
#include <unordered_map>
namespace simgrid {
namespace s4u {
+
std::map<std::string, Storage*>* allStorages()
{
std::unordered_map<std::string, surf::StorageImpl*>* map = surf::StorageImpl::storagesMap();
return pimpl_->cname();
}
-const char* Storage::host()
+const char* Storage::type()
+{
+ return pimpl_->typeId_.c_str();
+}
+
+Host* Storage::host()
{
- return pimpl_->attach_;
+ return attached_to_;
}
sg_size_t Storage::sizeFree()
xbt_dict_set(this->properties(), key, value, nullptr);
}
-std::map<std::string, sg_size_t*>* Storage::content()
+std::map<std::string, sg_size_t>* Storage::content()
{
return simgrid::simix::kernelImmediate([this] { return pimpl_->getContent(); });
}