X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ce6c6e673d5d233ea614018e5ca97e9ef5b63fa4..53b9ff1b6972dffeabd543a09c89170663c30ad1:/src/surf/surf_routing_floyd.hpp diff --git a/src/surf/surf_routing_floyd.hpp b/src/surf/surf_routing_floyd.hpp index 90016cba48..e5258f83bd 100644 --- a/src/surf/surf_routing_floyd.hpp +++ b/src/surf/surf_routing_floyd.hpp @@ -10,7 +10,7 @@ #include -#include "surf_routing_generic.hpp" +#include "surf_routing_RoutedGraph.hpp" namespace simgrid { namespace surf { @@ -21,21 +21,20 @@ namespace surf { class XBT_PRIVATE AsFloyd; /** Floyd routing data: slow initialization, fast lookup, lesser memory requirements, shortest path routing only */ -class AsFloyd: public AsGeneric { +class AsFloyd: public AsRoutedGraph { public: AsFloyd(const char *name); ~AsFloyd(); void getRouteAndLatency(NetCard *src, NetCard *dst, sg_platf_route_cbarg_t into, double *latency) override; - xbt_dynar_t getOneLinkRoutes() override; - void parseRoute(sg_platf_route_cbarg_t route) override; + void addRoute(sg_platf_route_cbarg_t route) override; void Seal() override; private: /* vars to compute the Floyd algorithm. */ - int *p_predecessorTable; - double *p_costTable; - sg_platf_route_cbarg_t *p_linkTable; + int *predecessorTable_; + double *costTable_; + sg_platf_route_cbarg_t *linkTable_; }; }