X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9a02e3654bd28c13ac053247383566f54fa4498a..455435b8a7cc8d84037aa66104a73d4760d9666f:/include/simgrid/s4u/As.hpp diff --git a/include/simgrid/s4u/As.hpp b/include/simgrid/s4u/As.hpp index 35eb03bf6e..33fcb48e11 100644 --- a/include/simgrid/s4u/As.hpp +++ b/include/simgrid/s4u/As.hpp @@ -27,6 +27,7 @@ namespace kernel { namespace routing { class AsImpl; class NetCard; + class BypassRoute; } } namespace s4u { @@ -57,6 +58,12 @@ public: virtual void addRoute(sg_platf_route_cbarg_t route); void addBypassRoute(sg_platf_route_cbarg_t e_route); + /*** Called on each newly created regular route (not on bypass routes) */ + static simgrid::xbt::signal* link_list)> + onRouteCreation; + protected: std::vector vertices_; // our content, as known to our graph routing algorithm (maps vertexId -> vertex) @@ -66,7 +73,8 @@ private: bool sealed_ = false; // We cannot add more content when sealed - std::map, std::vector*> bypassRoutes_; // src x dst -> route + std::map, kernel::routing::BypassRoute*> + bypassRoutes_; // src x dst -> route xbt_dict_t children_ = xbt_dict_new_homogeneous(nullptr); // sub-ASes };