Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid using memset to initialize structs.
[simgrid.git] / src / kernel / routing / EmptyZone.cpp
1 /* Copyright (c) 2009-2016. 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 "src/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 EmptyZone::EmptyZone(NetZone* father, std::string name) : NetZoneImpl(father, name)
19 {
20 }
21
22 EmptyZone::~EmptyZone() = default;
23
24 void EmptyZone::getGraph(xbt_graph_t /*graph*/, std::map<std::string, xbt_node_t>* /*nodes*/,
25                          std::map<std::string, xbt_edge_t>* /*edges*/)
26 {
27   XBT_ERROR("No routing no graph");
28 }
29 }
30 }
31 }