A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start to mess up with storage
[simgrid.git]
/
include
/
simgrid
/
s4u
/
storage.hpp
diff --git
a/include/simgrid/s4u/storage.hpp
b/include/simgrid/s4u/storage.hpp
index
4504bb8
..
4297f7c
100644
(file)
--- a/
include/simgrid/s4u/storage.hpp
+++ b/
include/simgrid/s4u/storage.hpp
@@
-7,9
+7,13
@@
#ifndef INCLUDE_SIMGRID_S4U_STORAGE_HPP_
#define INCLUDE_SIMGRID_S4U_STORAGE_HPP_
#ifndef INCLUDE_SIMGRID_S4U_STORAGE_HPP_
#define INCLUDE_SIMGRID_S4U_STORAGE_HPP_
+#include <string>
+
#include <boost/unordered_map.hpp>
#include <boost/unordered_map.hpp>
-#include "xbt/base.h"
-#include "simgrid/simix.h"
+
+#include <xbt/base.h>
+
+#include <simgrid/simix.h>
#include <simgrid/s4u/forward.hpp>
namespace simgrid {
#include <simgrid/s4u/forward.hpp>
namespace simgrid {
@@
-18,7
+22,6
@@
namespace s4u {
XBT_PUBLIC_CLASS Storage {
friend s4u::Engine;
XBT_PUBLIC_CLASS Storage {
friend s4u::Engine;
-private:
Storage(std::string name, smx_storage_t inferior);
virtual ~Storage();
Storage(std::string name, smx_storage_t inferior);
virtual ~Storage();
@@
-51,6
+54,7
@@
private:
static boost::unordered_map<std::string, Storage *> *storages_;
std::string name_;
static boost::unordered_map<std::string, Storage *> *storages_;
std::string name_;
+ size_t size_;
smx_storage_t pimpl_ = nullptr;
void *userdata_ = nullptr;
};
smx_storage_t pimpl_ = nullptr;
void *userdata_ = nullptr;
};