Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
constify
[simgrid.git] / src / kernel / routing / EmptyZone.cpp
1 /* Copyright (c) 2009-2021. 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(surf_route_none, surf, "Routing part of surf");
13
14 namespace simgrid {
15 namespace kernel {
16 namespace routing {
17
18 void EmptyZone::get_graph(const s_xbt_graph_t* /*graph*/, std::map<std::string, xbt_node_t, std::less<>>* /*nodes*/,
19                           std::map<std::string, xbt_edge_t, std::less<>>* /*edges*/)
20 {
21   XBT_ERROR("No routing no graph");
22 }
23 } // namespace routing
24 } // namespace kernel
25
26 namespace s4u {
27 NetZone* create_empty_zone(const std::string& name)
28 {
29   return (new kernel::routing::EmptyZone(name))->get_iface();
30 }
31 } // namespace s4u
32
33 } // namespace simgrid