X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08ddd90ede6ae87880ab6aefe213001b224de841..8c6bbb14f44b8daed5ea43d80880c6bf2155118b:/include/simgrid/kernel/routing/EmptyZone.hpp diff --git a/include/simgrid/kernel/routing/EmptyZone.hpp b/include/simgrid/kernel/routing/EmptyZone.hpp index cb64ff5ed5..72404938b1 100644 --- a/include/simgrid/kernel/routing/EmptyZone.hpp +++ b/include/simgrid/kernel/routing/EmptyZone.hpp @@ -1,12 +1,13 @@ -/* Copyright (c) 2013-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef SURF_ROUTING_NONE_HPP_ -#define SURF_ROUTING_NONE_HPP_ +#ifndef SIMGRID_ROUTING_NONE_HPP_ +#define SIMGRID_ROUTING_NONE_HPP_ #include +#include namespace simgrid { namespace kernel { @@ -21,19 +22,18 @@ namespace routing { class XBT_PRIVATE EmptyZone : public NetZoneImpl { public: - explicit EmptyZone(NetZone* father, std::string name); - ~EmptyZone() override; + explicit EmptyZone(const std::string& name) : NetZoneImpl(name) {} - void getLocalRoute(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override + void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override { - /* There can't be route in an Empty zone */ + xbt_die("There can't be route in an Empty zone"); } - void getGraph(xbt_graph_t graph, std::map* /*nodes*/, - std::map* /*edges*/) override; + void get_graph(const s_xbt_graph_t* graph, std::map>* /*nodes*/, + std::map>* /*edges*/) override; }; } // namespace routing } // namespace kernel } // namespace simgrid -#endif /* SURF_ROUTING_NONE_HPP_ */ +#endif /* SIMGRID_ROUTING_NONE_HPP_ */