X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/149c63f36e15b8500b1e826bda5138318ff7ba2b..e6bd3964814621aa2b678a648a0e014455728fae:/src/s4u/s4u_Netzone.cpp diff --git a/src/s4u/s4u_Netzone.cpp b/src/s4u/s4u_Netzone.cpp index 2e13264b4e..6109f66430 100644 --- a/src/s4u/s4u_Netzone.cpp +++ b/src/s4u/s4u_Netzone.cpp @@ -67,7 +67,7 @@ std::vector NetZone::get_all_hosts() const return pimpl_->get_all_hosts(); } -int NetZone::get_host_count() +int NetZone::get_host_count() const { return pimpl_->get_host_count(); } @@ -89,6 +89,15 @@ void NetZone::add_bypass_route(kernel::routing::NetPoint* src, kernel::routing:: { pimpl_->add_bypass_route(src, dst, gw_src, gw_dst, link_list, symmetrical); } + +void NetZone::extract_xbt_graph(const s_xbt_graph_t* graph, std::map* nodes, + std::map* edges) +{ + for (auto const& child : get_children()) + child->extract_xbt_graph(graph, nodes, edges); + + pimpl_->get_graph(graph, nodes, edges); +} } // namespace s4u } // namespace simgrid