X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/512273b5dab057e0f93aaed9c09c79d0e4960b61..19d3bf6036b2b7a1495b5d5e46fb78df1215a9b3:/include/simgrid/s4u/NetZone.hpp diff --git a/include/simgrid/s4u/NetZone.hpp b/include/simgrid/s4u/NetZone.hpp index afe33bd54d..76125f3c49 100644 --- a/include/simgrid/s4u/NetZone.hpp +++ b/include/simgrid/s4u/NetZone.hpp @@ -6,6 +6,7 @@ #ifndef SIMGRID_S4U_NETZONE_HPP #define SIMGRID_S4U_NETZONE_HPP +#include "simgrid/s4u/Host.hpp" #include #include #include @@ -61,6 +62,7 @@ public: /** @brief Get the gateway associated to this netzone */ kernel::routing::NetPoint* get_gateway() const; kernel::routing::NetPoint* get_gateway(const std::string& name) const; + void set_gateway(s4u::Host* router) { set_gateway(router->get_netpoint()); } void set_gateway(kernel::routing::NetPoint* router); void set_gateway(const std::string& name, kernel::routing::NetPoint* router);