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
6e102c2
..
2810c16
100644
(file)
--- a/
include/simgrid/Host.hpp
+++ b/
include/simgrid/Host.hpp
@@
-19,13
+19,14
@@
namespace simgrid {
XBT_PUBLIC_CLASS Host :
namespace simgrid {
XBT_PUBLIC_CLASS Host :
-
public simgrid::xbt::Extendable<Host> {
+public simgrid::xbt::Extendable<Host> {
- public:
- surf::Cpu *p_cpu;
+public:
+ surf::Cpu *p_cpu = nullptr;
+ surf::NetCard *p_netcard = nullptr;
private:
private:
- simgrid::xbt::string name_;
+ simgrid::xbt::string name_
= "noname"
;
public:
Host(std::string const& name);
~Host();
public:
Host(std::string const& name);
~Host();