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
give the VM a link to their PM as a simgrid::Host
[simgrid.git]
/
include
/
simgrid
/
Host.hpp
diff --git
a/include/simgrid/Host.hpp
b/include/simgrid/Host.hpp
index
c887ee7
..
d4d211a
100644
(file)
--- a/
include/simgrid/Host.hpp
+++ b/
include/simgrid/Host.hpp
@@
-18,13
+18,14
@@
namespace simgrid {
namespace simgrid {
-XBT_PUBLIC_CLASS Host : public simgrid::xbt::Extendable<Host> {
+XBT_PUBLIC_CLASS Host :
+ public simgrid::xbt::Extendable<Host> {
private:
private:
- simgrid::xbt::string
id
_;
+ simgrid::xbt::string
name
_;
public:
public:
- Host(std::string const&
id
);
+ Host(std::string const&
name
);
~Host();
~Host();
- simgrid::xbt::string const&
id() const { return id
_; }
+ simgrid::xbt::string const&
getName() const { return name
_; }
static Host* by_name_or_null(const char* name);
static Host* by_name_or_create(const char* name);
};
static Host* by_name_or_null(const char* name);
static Host* by_name_or_create(const char* name);
};