]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/surf_routing.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
As::bypassRoutes_ does not need to be a reference
[simgrid.git] / src / surf / surf_routing.hpp
index 07afc8d76ec53e5b6324573ab5995ffbe4ed9896..dd4ef9d62ffa85c9719ac4e577b68c7b9bc58700 100644 (file)
@@ -73,7 +73,7 @@ public:
 
 private:
   bool sealed_ = false; // We cannot add more content when sealed
-  std::map<std::string, std::vector<Link*>*> *bypassRoutes_ = nullptr;
+  std::map<std::string, std::vector<Link*>*> bypassRoutes_;
 
 public:
   /**
@@ -140,7 +140,7 @@ private:
 };
 
 /** @ingroup SURF_routing_interface
- * @brief Link of lenght 1, alongside with its source and destination. This is mainly usefull in the ns3 bindings
+ * @brief Link of length 1, alongside with its source and destination. This is mainly useful in the ns3 bindings
  */
 class Onelink {
 public:
@@ -160,7 +160,6 @@ public:
   ~RoutingPlatf();
   As *root_ = nullptr;
   Link *loopback_;
-  xbt_dynar_t lastRoute_ = xbt_dynar_new(sizeof(Link*),NULL);
   xbt_dynar_t getOneLinkRoutes(void);
   void getRouteAndLatency(NetCard *src, NetCard *dst, std::vector<Link*> * links, double *latency);
 };