X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8aa45aa966b01c54b5cc2a2a3826e44c55bde174..c07b0d9b6750434a97220b7819c0f72bfc8d4e98:/src/smpi/include/smpi_datatype_derived.hpp diff --git a/src/smpi/include/smpi_datatype_derived.hpp b/src/smpi/include/smpi_datatype_derived.hpp index 845bd50cbf..d749e2fc75 100644 --- a/src/smpi/include/smpi_datatype_derived.hpp +++ b/src/smpi/include/smpi_datatype_derived.hpp @@ -21,7 +21,7 @@ public: Type_Contiguous(const Type_Contiguous&) = delete; Type_Contiguous& operator=(const Type_Contiguous&) = delete; ~Type_Contiguous(); - Type_Contiguous* clone() override; + int clone(MPI_Datatype* type) override; void serialize(const void* noncontiguous, void* contiguous, int count) override; void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op) override; }; @@ -33,13 +33,12 @@ public: MPI_Aint block_stride_; MPI_Datatype old_type_; -public: Type_Hvector(int size, MPI_Aint lb, MPI_Aint ub, int flags, int block_count, int block_length, MPI_Aint block_stride, MPI_Datatype old_type); Type_Hvector(const Type_Hvector&) = delete; Type_Hvector& operator=(const Type_Hvector&) = delete; ~Type_Hvector(); - Type_Hvector* clone() override; + int clone(MPI_Datatype* type) override; void serialize(const void* noncontiguous, void* contiguous, int count) override; void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op) override; }; @@ -48,7 +47,7 @@ class Type_Vector : public Type_Hvector { public: Type_Vector(int size, MPI_Aint lb, MPI_Aint ub, int flags, int count, int blocklen, int stride, MPI_Datatype old_type); - Type_Vector* clone() override; + int clone(MPI_Datatype* type) override; }; class Type_Hindexed: public Datatype{ @@ -58,14 +57,13 @@ public: MPI_Aint* block_indices_; MPI_Datatype old_type_; -public: Type_Hindexed(int size, MPI_Aint lb, MPI_Aint ub, int flags, int block_count, const int* block_lengths, const MPI_Aint* block_indices, MPI_Datatype old_type); Type_Hindexed(int size, MPI_Aint lb, MPI_Aint ub, int flags, int block_count, const int* block_lengths, const int* block_indices, MPI_Datatype old_type, MPI_Aint factor); Type_Hindexed(const Type_Hindexed&) = delete; Type_Hindexed& operator=(const Type_Hindexed&) = delete; - Type_Hindexed* clone() override; + int clone(MPI_Datatype* type) override; ~Type_Hindexed(); void serialize(const void* noncontiguous, void* contiguous, int count) override; void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op) override; @@ -75,7 +73,7 @@ class Type_Indexed : public Type_Hindexed { public: Type_Indexed(int size, MPI_Aint lb, MPI_Aint ub, int flags, int block_count, const int* block_lengths, const int* block_indices, MPI_Datatype old_type); - Type_Indexed* clone() override; + int clone(MPI_Datatype* type) override; }; class Type_Struct: public Datatype{ @@ -89,7 +87,7 @@ public: const MPI_Aint* block_indices, const MPI_Datatype* old_types); Type_Struct(const Type_Struct&) = delete; Type_Struct& operator=(const Type_Struct&) = delete; - Type_Struct* clone() override; + int clone(MPI_Datatype* type) override; ~Type_Struct(); void serialize(const void* noncontiguous, void* contiguous, int count) override; void unserialize(const void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op) override;