X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/82230d737404aa70c3c2b5824d97109f1f129d58..0a9ce6009d2a98f3ef66a8a1b020106f09e5568c:/include/simgrid/s4u/Storage.hpp?ds=sidebyside diff --git a/include/simgrid/s4u/Storage.hpp b/include/simgrid/s4u/Storage.hpp index c009740e9d..8ba939c39e 100644 --- a/include/simgrid/s4u/Storage.hpp +++ b/include/simgrid/s4u/Storage.hpp @@ -7,6 +7,7 @@ #ifndef INCLUDE_SIMGRID_S4U_STORAGE_HPP_ #define INCLUDE_SIMGRID_S4U_STORAGE_HPP_ +#include "xbt/Extendable.hpp" #include #include #include @@ -15,11 +16,14 @@ #include namespace simgrid { +namespace xbt { +extern template class XBT_PUBLIC() Extendable; +} namespace s4u { XBT_ATTRIB_PUBLIC std::map* allStorages(); -XBT_PUBLIC_CLASS Storage +XBT_PUBLIC_CLASS Storage : public simgrid::xbt::Extendable { friend s4u::Engine; friend simgrid::surf::StorageImpl; @@ -39,6 +43,7 @@ public: sg_size_t getSizeFree(); sg_size_t getSizeUsed(); void decrUsedSize(sg_size_t size); + void incrUsedSize(sg_size_t size); std::map* getProperties(); const char* getProperty(std::string key);