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
One method to set netzone's relationship
[simgrid.git]
/
src
/
s4u
/
s4u_Netzone.cpp
diff --git
a/src/s4u/s4u_Netzone.cpp
b/src/s4u/s4u_Netzone.cpp
index
7645d5d
..
dc6f3d4
100644
(file)
--- a/
src/s4u/s4u_Netzone.cpp
+++ b/
src/s4u/s4u_Netzone.cpp
@@
-47,9
+47,9
@@
std::vector<NetZone*> NetZone::get_children() const
return res;
}
-NetZone* NetZone::add_child(
const
NetZone* new_zone)
+NetZone* NetZone::add_child(NetZone* new_zone)
{
-
pimpl_->add_child(new_zone->get_impl()
);
+
new_zone->set_parent(this
);
return this;
}