X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc4eceb15c80a597e44222b8c0ff60caf85db959..19e1048a7009c4144b0f361ad85fb9dff44761ea:/include/simgrid/kernel/routing/FullZone.hpp diff --git a/include/simgrid/kernel/routing/FullZone.hpp b/include/simgrid/kernel/routing/FullZone.hpp index 2cf77e7243..35a937709f 100644 --- a/include/simgrid/kernel/routing/FullZone.hpp +++ b/include/simgrid/kernel/routing/FullZone.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2021. 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. */ @@ -19,19 +19,19 @@ namespace routing { * computational requirements, but also the highest memory requirements (both in platform file and in memory). */ class XBT_PRIVATE FullZone : public RoutedZone { + std::vector>> routing_table_; + void do_seal() override; + /** @brief Check and resize (if necessary) the routing table */ + void check_routing_table(); + public: - explicit FullZone(NetZoneImpl* father, std::string name, resource::NetworkModel* netmodel); + using RoutedZone::RoutedZone; FullZone(const FullZone&) = delete; FullZone& operator=(const FullZone) = delete; - ~FullZone() override; - void seal() override; - void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override; + void get_local_route(const NetPoint* src, const NetPoint* dst, Route* into, double* latency) override; void add_route(NetPoint* src, NetPoint* dst, NetPoint* gw_src, NetPoint* gw_dst, - std::vector& link_list, bool symmetrical) override; - -private: - RouteCreationArgs** routing_table_ = nullptr; + const std::vector& link_list, bool symmetrical) override; }; } // namespace routing } // namespace kernel