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
Host::get_englobing_zone() returns the englobing netzone
[simgrid.git]
/
src
/
s4u
/
s4u_Host.cpp
diff --git
a/src/s4u/s4u_Host.cpp
b/src/s4u/s4u_Host.cpp
index
b8acf61
..
db85aa3
100644
(file)
--- a/
src/s4u/s4u_Host.cpp
+++ b/
src/s4u/s4u_Host.cpp
@@
-171,6
+171,12
@@
void Host::route_to(Host* dest, std::vector<kernel::resource::LinkImpl*>& links,
}
}
}
}
+/** @brief Returns the networking zone englobing that host */
+NetZone* Host::get_englobing_zone()
+{
+ return pimpl_netpoint->get_englobing_zone()->get_iface();
+}
+
void Host::send_to(Host* dest, double byte_amount)
{
std::vector<Host*> m_host_list = {this, dest};
void Host::send_to(Host* dest, double byte_amount)
{
std::vector<Host*> m_host_list = {this, dest};