]> AND Public Git Repository - simgrid.git/blobdiff - include/simgrid/kernel/routing/FloydZone.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
yet another bunch of int -> unsigned long
[simgrid.git] / include / simgrid / kernel / routing / FloydZone.hpp
index f8ae9290ccd604544d6ed53c89966c3fa1f3a7f9..46f12088c29e8ed0291b0f029e12712885dceaec 100644 (file)
@@ -23,8 +23,8 @@ namespace routing {
  */
 class XBT_PRIVATE FloydZone : public RoutedZone {
   /* vars to compute the Floyd algorithm. */
-  std::vector<std::vector<int>> predecessor_table_;
-  std::vector<std::vector<double>> cost_table_;
+  std::vector<std::vector<unsigned long>> predecessor_table_;
+  std::vector<std::vector<unsigned long>> cost_table_;
   std::vector<std::vector<std::unique_ptr<Route>>> link_table_;
 
   void init_tables(unsigned int table_size);
@@ -35,9 +35,9 @@ public:
   FloydZone(const FloydZone&) = delete;
   FloydZone& operator=(const FloydZone&) = delete;
 
-  void get_local_route(NetPoint* src, NetPoint* dst, Route* into, double* latency) override;
+  void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override;
   void add_route(NetPoint* src, NetPoint* dst, NetPoint* gw_src, NetPoint* gw_dst,
-                 const std::vector<resource::LinkImpl*>& link_list, bool symmetrical) override;
+                 const std::vector<s4u::LinkInRoute>& link_list, bool symmetrical) override;
 };
 } // namespace routing
 } // namespace kernel