X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa3426ffe35e9f09e17b5f09ee1264263b0a61b4..455435b8a7cc8d84037aa66104a73d4760d9666f:/include/simgrid/s4u/As.hpp diff --git a/include/simgrid/s4u/As.hpp b/include/simgrid/s4u/As.hpp index 6758f4e19a..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,16 +58,24 @@ 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: - As* father_ = nullptr; - char *name_ = nullptr; - xbt_dict_t children_ = xbt_dict_new_homogeneous(nullptr); // sub-ASes std::vector vertices_; // our content, as known to our graph routing algorithm (maps vertexId -> vertex) - std::map, std::vector*> bypassRoutes_; // srcName x dstName -> route - private: + As* father_ = nullptr; + char* name_ = nullptr; + bool sealed_ = false; // We cannot add more content when sealed + + std::map, kernel::routing::BypassRoute*> + bypassRoutes_; // src x dst -> route + xbt_dict_t children_ = xbt_dict_new_homogeneous(nullptr); // sub-ASes }; }}; // Namespace simgrid::s4u