X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/73e97710413bba3ee2ae8baab0537fbd78811016..5ed37babb2fa9097abe82df299c0aa259ed84d5a:/src/smpi/include/smpi_datatype.hpp diff --git a/src/smpi/include/smpi_datatype.hpp b/src/smpi/include/smpi_datatype.hpp index cacdfbe89c..8e99738030 100644 --- a/src/smpi/include/smpi_datatype.hpp +++ b/src/smpi/include/smpi_datatype.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2023. 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. */ @@ -82,8 +82,7 @@ struct integer128_t { int64_t index; }; -namespace simgrid{ -namespace smpi{ +namespace simgrid::smpi { class Datatype_contents { public: int combiner_; @@ -129,7 +128,7 @@ public: Datatype(const Datatype&) = delete; Datatype& operator=(const Datatype&) = delete; ~Datatype() override; - std::string name() const override {return name_.empty() ? std::string("MPI_Datatype") : name_;} + std::string name() const override { return name_.empty() ? "MPI_Datatype" : name_; } size_t size() const { return size_; } MPI_Aint lb() const { return lb_; } MPI_Aint ub() const { return ub_; } @@ -155,9 +154,6 @@ public: virtual int clone(MPI_Datatype* type); virtual void serialize(const void* noncontiguous, void* contiguous, int count); virtual void unserialize(const void* contiguous, void* noncontiguous, int count, MPI_Op op); - static int keyval_create(MPI_Type_copy_attr_function* copy_fn, MPI_Type_delete_attr_function* delete_fn, int* keyval, - void* extra_state); - static int keyval_free(int* keyval); int pack(const void* inbuf, int incount, void* outbuf, int outcount, int* position, const Comm* comm); int unpack(const void* inbuf, int insize, int* position, void* outbuf, int outcount, const Comm* comm); int get_contents(int max_integers, int max_addresses, int max_datatypes, int* array_of_integers, @@ -179,7 +175,6 @@ public: static Datatype* f2c(int id); }; -} -} +} // namespace simgrid::smpi #endif