-/* Copyright (c) 2014-2018. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2014-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. */
*/
class XBT_PRIVATE TorusZone : public ClusterZone {
+ std::vector<unsigned int> dimensions_;
+
public:
- explicit TorusZone(NetZoneImpl* father, std::string name);
+ using ClusterZone::ClusterZone;
void create_links_for_node(ClusterCreationArgs* cluster, int id, int rank, unsigned int position) override;
void get_local_route(NetPoint* src, NetPoint* dst, RouteCreationArgs* into, double* latency) override;
void parse_specific_arguments(ClusterCreationArgs* cluster) override;
-
-private:
- std::vector<unsigned int> dimensions_;
};
} // namespace routing
} // namespace kernel