X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/29a3b2869c0075fc75e8ccc66fc1d9c4c8bf6a85..7b4d2c4a1c1c667a0a5676dff5dffe6cb6b8aced:/include/simgrid/kernel/routing/DragonflyZone.hpp diff --git a/include/simgrid/kernel/routing/DragonflyZone.hpp b/include/simgrid/kernel/routing/DragonflyZone.hpp index dfd6bf2eda..9144e16a61 100644 --- a/include/simgrid/kernel/routing/DragonflyZone.hpp +++ b/include/simgrid/kernel/routing/DragonflyZone.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2019. 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. */ @@ -18,12 +18,11 @@ public: unsigned int group_; unsigned int chassis_; unsigned int blade_; - resource::LinkImpl** blue_links_ = nullptr; - resource::LinkImpl** black_links_ = nullptr; - resource::LinkImpl** green_links_ = nullptr; - resource::LinkImpl** my_nodes_ = nullptr; - DragonflyRouter(int i, int j, int k); - ~DragonflyRouter(); + resource::LinkImpl* blue_link_ = nullptr; + std::vector black_links_; + std::vector green_links_; + std::vector my_nodes_; + DragonflyRouter(unsigned group, unsigned chassis, unsigned blade) : group_(group), chassis_(chassis), blade_(blade) {} }; /** @ingroup ROUTING_API @@ -61,8 +60,7 @@ public: */ class XBT_PUBLIC DragonflyZone : public ClusterZone { public: - explicit DragonflyZone(NetZoneImpl* father, std::string name, resource::NetworkModel* netmodel); - ~DragonflyZone() override; + explicit DragonflyZone(NetZoneImpl* father, const std::string& name, resource::NetworkModel* netmodel); // void create_links_for_node(sg_platf_cluster_cbarg_t cluster, int id, int rank, int position) override; void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override; void parse_specific_arguments(ClusterCreationArgs* cluster) override; @@ -87,7 +85,7 @@ private: unsigned int num_links_black_ = 0; unsigned int num_links_blue_ = 0; unsigned int num_links_per_link_ = 1; // splitduplex -> 2, only for local link - DragonflyRouter** routers_ = nullptr; + std::vector routers_; }; } // namespace routing } // namespace kernel