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 a p_netcard to simgrid::Host instead of relying on extensions for that
[simgrid.git]
/
include
/
simgrid
/
Host.hpp
diff --git
a/include/simgrid/Host.hpp
b/include/simgrid/Host.hpp
index
c887ee7
..
2810c16
100644
(file)
--- a/
include/simgrid/Host.hpp
+++ b/
include/simgrid/Host.hpp
@@
-18,13
+18,19
@@
namespace simgrid {
namespace simgrid {
-XBT_PUBLIC_CLASS Host : public simgrid::xbt::Extendable<Host> {
+XBT_PUBLIC_CLASS Host :
+public simgrid::xbt::Extendable<Host> {
+
+public:
+ surf::Cpu *p_cpu = nullptr;
+ surf::NetCard *p_netcard = nullptr;
+
private:
private:
- simgrid::xbt::string
id_
;
+ simgrid::xbt::string
name_ = "noname"
;
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);
};