X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c6bbeb1829c36ff45b43ab25f9d8d3f53f554d98..39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f:/include/simgrid/kernel/routing/FloydZone.hpp diff --git a/include/simgrid/kernel/routing/FloydZone.hpp b/include/simgrid/kernel/routing/FloydZone.hpp index f768867da5..9a5b924e87 100644 --- a/include/simgrid/kernel/routing/FloydZone.hpp +++ b/include/simgrid/kernel/routing/FloydZone.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. */ @@ -35,9 +35,11 @@ public: private: /* vars to compute the Floyd algorithm. */ - int* predecessor_table_ = nullptr; - double* cost_table_ = nullptr; - RouteCreationArgs** link_table_ = nullptr; + std::vector predecessor_table_; + std::vector cost_table_; + std::vector link_table_; + + void init_tables(unsigned int table_size); }; } // namespace routing } // namespace kernel