Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use std::pair instead of bprintf(%s#%s)ing the keys
[simgrid.git] / src / surf / surf_routing.hpp
index 8d091fe..6007faf 100644 (file)
@@ -75,7 +75,7 @@ private:
   bool sealed_ = false; // We cannot add more content when sealed
 
   friend RoutingPlatf;
-  std::map<std::string, std::vector<Link*>*> bypassRoutes_;
+  std::map<std::pair<std::string, std::string>, std::vector<Link*>*> bypassRoutes_; // srcName x dstName -> route
   static void getRouteRecursive(NetCard *src, NetCard *dst, /* OUT */ std::vector<Link*> * links, double *latency);
   std::vector<Link*> *getBypassRoute(NetCard *src, NetCard *dst);