X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/579d27969fbc1fa8004de922816a0068e52a9fa6..de57b34916659892d2dc26edabf552253afe2c18:/src/kernel/routing/TorusZone.hpp diff --git a/src/kernel/routing/TorusZone.hpp b/src/kernel/routing/TorusZone.hpp index 8d8c7a1a92..ac04e68410 100644 --- a/src/kernel/routing/TorusZone.hpp +++ b/src/kernel/routing/TorusZone.hpp @@ -7,6 +7,7 @@ #define SURF_ROUTING_CLUSTER_TORUS_HPP_ #include "src/kernel/routing/ClusterZone.hpp" +#include namespace simgrid { namespace kernel { @@ -19,14 +20,13 @@ namespace routing { class XBT_PRIVATE TorusZone : public ClusterZone { public: - explicit TorusZone(NetZone* father, const char* name); - ~TorusZone() override; - void create_links_for_node(sg_platf_cluster_cbarg_t cluster, int id, int rank, int position) override; - void getLocalRoute(NetCard* src, NetCard* dst, sg_platf_route_cbarg_t into, double* latency) override; - void parse_specific_arguments(sg_platf_cluster_cbarg_t cluster) override; + explicit TorusZone(NetZone* father, std::string name); + void create_links_for_node(ClusterCreationArgs* cluster, int id, int rank, unsigned int position) override; + void getLocalRoute(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override; + void parse_specific_arguments(ClusterCreationArgs* cluster) override; private: - xbt_dynar_t dimensions_ = nullptr; + std::vector dimensions_; }; } }