X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/43f7ca1cac5ab1858e318fdd6239d0a0c3b3d893..cc4eceb15c80a597e44222b8c0ff60caf85db959:/src/smpi/include/smpi_topo.hpp diff --git a/src/smpi/include/smpi_topo.hpp b/src/smpi/include/smpi_topo.hpp index d0cb5709ea..35e3196d52 100644 --- a/src/smpi/include/smpi_topo.hpp +++ b/src/smpi/include/smpi_topo.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-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. */ @@ -17,8 +17,10 @@ namespace smpi{ class Topo { public: virtual ~Topo()=default; - protected: - MPI_Comm comm_; + MPI_Comm getComm() const { return comm_; } + void setComm(MPI_Comm comm) { comm_ = comm; } + private: + MPI_Comm comm_; }; @@ -31,6 +33,8 @@ class Topo_Cart: public Topo { int *position_; public: explicit Topo_Cart(int ndims); + Topo_Cart(const Topo_Cart&) = delete; + Topo_Cart& operator=(const Topo_Cart&) = delete; ~Topo_Cart(); Topo_Cart(MPI_Comm comm_old, int ndims, int dims[], int periods[], int reorder, MPI_Comm *comm_cart); Topo_Cart* sub(const int remain_dims[], MPI_Comm *newcomm) ; @@ -46,25 +50,25 @@ class Topo_Cart: public Topo { class Topo_Graph: public Topo { private: int nnodes_; - int nedges_; int *index_; int *edges_; public: Topo_Graph(); + Topo_Graph(const Topo_Graph&) = delete; + Topo_Graph& operator=(const Topo_Graph&) = delete; ~Topo_Graph(); }; class Topo_Dist_Graph: public Topo { private: - int indegree_; int *in_; int *in_weights_; - int outdegree_; int *out_; int *out_weights_; - int is_weighted_; public: Topo_Dist_Graph(); + Topo_Dist_Graph(const Topo_Dist_Graph&) = delete; + Topo_Dist_Graph& operator=(const Topo_Dist_Graph&) = delete; ~Topo_Dist_Graph(); };