X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2e90dce314cf5e2154ba044fbb7e19daf97a289a..d17275a7f232bacf3d00279e3ba76c32cc6cf2c5:/src/smpi/smpi_datatype.hpp?ds=sidebyside diff --git a/src/smpi/smpi_datatype.hpp b/src/smpi/smpi_datatype.hpp index 256b06acee..9c0cb86da8 100644 --- a/src/smpi/smpi_datatype.hpp +++ b/src/smpi/smpi_datatype.hpp @@ -129,100 +129,6 @@ class Datatype{ static int create_struct(int count, int* blocklens, MPI_Aint* indices, MPI_Datatype* old_types, MPI_Datatype* new_type); }; -class Type_Contiguous: public Datatype{ - private: - int block_count_; - MPI_Datatype old_type_; - public: - Type_Contiguous(int size, MPI_Aint lb, MPI_Aint ub, int flags, int block_count, MPI_Datatype old_type); - ~Type_Contiguous(); - void use(); - void serialize( void* noncontiguous, void *contiguous, - int count); - void unserialize( void* contiguous_vector, void *noncontiguous_vector, - int count, MPI_Op op); -}; - -class Type_Vector: public Datatype{ - private: - int block_count_; - int block_length_; - int block_stride_; - MPI_Datatype old_type_; - 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(); - void use(); - void serialize( void* noncontiguous, void *contiguous, - int count); - void unserialize( void* contiguous_vector, void *noncontiguous_vector, - int count, MPI_Op op); -}; - -class Type_Hvector: public Datatype{ - private: - int block_count_; - int block_length_; - 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(); - void use(); - void serialize( void* noncontiguous, void *contiguous, - int count); - void unserialize( void* contiguous_vector, void *noncontiguous_vector, - int count, MPI_Op op); -}; - -class Type_Indexed: public Datatype{ - private: - int block_count_; - int* block_lengths_; - int* block_indices_; - MPI_Datatype old_type_; - public: - Type_Indexed(int size,MPI_Aint lb, MPI_Aint ub, int flags, int block_count, int* block_lengths, int* block_indices, MPI_Datatype old_type); - ~Type_Indexed(); - void use(); - void serialize( void* noncontiguous, void *contiguous, - int count); - void unserialize( void* contiguous_vector, void *noncontiguous_vector, - int count, MPI_Op op); -}; - -class Type_Hindexed: public Datatype{ - private: - int block_count_; - int* block_lengths_; - MPI_Aint* block_indices_; - MPI_Datatype old_type_; - public: - Type_Hindexed(int size,MPI_Aint lb, MPI_Aint ub, int flags, int block_count, int* block_lengths, MPI_Aint* block_indices, MPI_Datatype old_type); - ~Type_Hindexed(); - void use(); - void serialize( void* noncontiguous, void *contiguous, - int count); - void unserialize( void* contiguous_vector, void *noncontiguous_vector, - int count, MPI_Op op); -}; - -class Type_Struct: public Datatype{ - private: - int block_count_; - int* block_lengths_; - MPI_Aint* block_indices_; - MPI_Datatype* old_types_; - public: - Type_Struct(int size,MPI_Aint lb, MPI_Aint ub, int flags, int block_count, int* block_lengths, MPI_Aint* block_indices, MPI_Datatype* old_types); - ~Type_Struct(); - void use(); - void serialize( void* noncontiguous, void *contiguous, - int count); - void unserialize( void* contiguous_vector, void *noncontiguous_vector, - int count, MPI_Op op); -}; - } }