X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b130b354872c90b8103859b2bcaa1f1bcb7f0967..84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6:/src/smpi/include/smpi_group.hpp diff --git a/src/smpi/include/smpi_group.hpp b/src/smpi/include/smpi_group.hpp index 96078433a8..889dfa628d 100644 --- a/src/smpi/include/smpi_group.hpp +++ b/src/smpi/include/smpi_group.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2019. The SimGrid Team. +/* Copyright (c) 2010-2020. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -25,15 +25,16 @@ class Group : public F2C{ std::vector index_to_rank_map_; int refcount_ = 1; /* refcount_: start > 0 so that this group never gets freed */ + public: Group() = default; explicit Group(int size) : size_(size), rank_to_actor_map_(size, nullptr), index_to_rank_map_(size, MPI_UNDEFINED) {} explicit Group(Group* origin); - void set_mapping(s4u::ActorPtr actor, int rank); + void set_mapping(s4u::Actor* actor, int rank); int rank(int index); - s4u::ActorPtr actor(int rank); - int rank(s4u::ActorPtr process); + s4u::Actor* actor(int rank); + int rank(s4u::Actor* process); void ref(); static void unref(MPI_Group group); int size() { return size_; }