X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/22e742fb266e0bfa912d5b1ad8768ac8385367fc..085e04235ab064182e828e2d25f389b64d81dc12:/src/surf/surf_routing_dijkstra.hpp?ds=sidebyside diff --git a/src/surf/surf_routing_dijkstra.hpp b/src/surf/surf_routing_dijkstra.hpp index 7e3b8ffa85..ae5e000bfc 100644 --- a/src/surf/surf_routing_dijkstra.hpp +++ b/src/surf/surf_routing_dijkstra.hpp @@ -6,7 +6,7 @@ #include -#include "surf_routing_generic.hpp" +#include "surf_routing_RoutedGraph.hpp" #ifndef SURF_ROUTING_DIJKSTRA_HPP_ #define SURF_ROUTING_DIJKSTRA_HPP_ @@ -35,7 +35,7 @@ namespace surf { class XBT_PRIVATE AsDijkstra; /** Dijkstra routing data: fast initialization, slow lookup, small memory requirements, shortest path routing only */ -class AsDijkstra : public AsGeneric { +class AsDijkstra : public AsRoutedGraph { public: AsDijkstra(const char*name, bool cached); void Seal() override; @@ -56,15 +56,14 @@ public: * After this function returns, any node in the graph * will have a loopback attached to it. */ - void addLoopback(); void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t route, double *lat) override; void getRouteAndLatency(sg_platf_route_cbarg_t route, double *lat); // FIXME: this function is dangerously not overriding because of diverging prototype xbt_dynar_t getOneLinkRoutes() override; - void parseRoute(sg_platf_route_cbarg_t route) override; + void addRoute(sg_platf_route_cbarg_t route) override; - xbt_graph_t p_routeGraph = nullptr; /* xbt_graph */ - xbt_dict_t p_graphNodeMap = nullptr; /* map */ - xbt_dict_t p_routeCache = nullptr; /* use in cache mode */ + xbt_graph_t routeGraph_ = nullptr; /* xbt_graph */ + xbt_dict_t graphNodeMap_ = nullptr; /* map */ + xbt_dict_t routeCache_ = nullptr; /* use in cache mode */ }; }