Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Factory functions for all Netzones
[simgrid.git] / src / kernel / routing / DijkstraZone.cpp
index 0a4c855..1c6d30f 100644 (file)
@@ -258,4 +258,12 @@ void DijkstraZone::new_edge(int src_id, int dst_id, RouteCreationArgs* route)
 }
 } // namespace routing
 } // namespace kernel
+
+namespace s4u {
+NetZone* createDijkstraZone(const std::string& name, bool cache)
+{
+  return (new kernel::routing::DijkstraZone(name, cache))->get_iface();
+}
+} // namespace s4u
+
 } // namespace simgrid