Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
26fc80c99b8312f5f955f9622302a268c6320e35
[simgrid.git] / src / kernel / routing / EmptyZone.cpp
1 /* Copyright (c) 2009-2023. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #include <xbt/dict.h>
7 #include <xbt/graph.h>
8 #include <xbt/log.h>
9
10 #include "simgrid/kernel/routing/EmptyZone.hpp"
11
12 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ker_routing_none, ker_routing, "Kernel No Routing");
13
14 namespace simgrid {
15 namespace kernel::routing {
16
17 void EmptyZone::get_graph(const s_xbt_graph_t* /*graph*/, std::map<std::string, xbt_node_t, std::less<>>* /*nodes*/,
18                           std::map<std::string, xbt_edge_t, std::less<>>* /*edges*/)
19 {
20   xbt_die("No routing no graph");
21 }
22 } // namespace kernel::routing
23
24 namespace s4u {
25 NetZone* create_empty_zone(const std::string& name)
26 {
27   return (new kernel::routing::EmptyZone(name))->get_iface();
28 }
29 } // namespace s4u
30
31 } // namespace simgrid