-/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2010-2018. 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 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_;
};
class Topo_Graph: public Topo {
private:
int nnodes_;
- int nedges_;
int *index_;
int *edges_;
public:
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();