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

Public GIT Repository
In C++ files, replace SG_{BEGIN,END}+_DECL() by extern "C" { }.
[simgrid.git] / src / kernel / routing / EmptyZone.hpp
index 90036ff87d618056693ab425f237847179f2c905..888d744e159221fe921df413b66b8e14ddc74b20 100644 (file)
@@ -21,10 +21,14 @@ namespace routing {
 
 class XBT_PRIVATE EmptyZone : public NetZoneImpl {
 public:
-  explicit EmptyZone(NetZone* father, const char* name);
+  explicit EmptyZone(NetZone* father, std::string name);
   ~EmptyZone() override;
 
-  void getLocalRoute(NetPoint* src, NetPoint* dst, sg_platf_route_cbarg_t into, double* latency) override;
+  void getLocalRoute(NetPoint* src, NetPoint* dst, sg_platf_route_cbarg_t into, double* latency) override
+  {
+    /* There can't be route in an Empty zone */
+  }
+
   void getGraph(xbt_graph_t graph, xbt_dict_t nodes, xbt_dict_t edges) override;
 };
 }