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
Merge branches 'master' and 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
[simgrid.git]
/
include
/
simgrid
/
s4u
/
host.hpp
diff --git
a/include/simgrid/s4u/host.hpp
b/include/simgrid/s4u/host.hpp
index
ac7174d
..
b197b72
100644
(file)
--- a/
include/simgrid/s4u/host.hpp
+++ b/
include/simgrid/s4u/host.hpp
@@
-46,11
+46,16
@@
public:
explicit Host(const char *name);
/** Host destruction logic */
explicit Host(const char *name);
/** Host destruction logic */
+protected:
+ virtual ~Host();
+
private:
private:
- ~Host();
bool currentlyDestroying_ = false;
public:
void destroy();
bool currentlyDestroying_ = false;
public:
void destroy();
+ // No copy/move
+ Host(Host const&) = delete;
+ Host& operator=(Host const&) = delete;
/** Retrieves an host from its name, or return nullptr */
static Host* by_name_or_null(const char* name);
/** Retrieves an host from its name, or return nullptr */
static Host* by_name_or_null(const char* name);
@@
-85,8
+90,8
@@
public:
int pstatesCount() const;
void setPstate(int pstate_index);
int pstate();
int pstatesCount() const;
void setPstate(int pstate_index);
int pstate();
- void parameters(vm_params_t params);
- void setParameters(vm_params_t params);
+ v
irtual v
oid parameters(vm_params_t params);
+ v
irtual v
oid setParameters(vm_params_t params);
xbt_dict_t mountedStoragesAsDict(); // HACK
xbt_dynar_t attachedStorages();
xbt_dict_t mountedStoragesAsDict(); // HACK
xbt_dynar_t attachedStorages();