Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cleanups in smpi, mostly cosmetic stuff and indent
[simgrid.git] / src / smpi / include / smpi_datatype_derived.hpp
index 9e1f4c8..e986197 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2010, 2012-2017. The SimGrid Team.
+/* Copyright (c) 2009-2019. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -18,6 +18,8 @@ class Type_Contiguous: public Datatype {
 
 public:
   Type_Contiguous(int size, MPI_Aint lb, MPI_Aint ub, int flags, int block_count, MPI_Datatype old_type);
+  Type_Contiguous(const Type_Contiguous&) = delete;
+  Type_Contiguous& operator=(const Type_Contiguous&) = delete;
   ~Type_Contiguous();
   void serialize(void* noncontiguous, void* contiguous, int count);
   void unserialize(void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op);
@@ -32,6 +34,8 @@ class Type_Hvector: public Datatype{
 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();
   void serialize(void* noncontiguous, void* contiguous, int count);
   void unserialize(void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op);
@@ -54,6 +58,8 @@ public:
                 MPI_Aint* block_indices, MPI_Datatype old_type);
   Type_Hindexed(int size, MPI_Aint lb, MPI_Aint ub, int flags, int block_count, int* block_lengths, 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();
   void serialize(void* noncontiguous, void* contiguous, int count);
   void unserialize(void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op);
@@ -74,13 +80,14 @@ class Type_Struct: public Datatype{
 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(const Type_Struct&) = delete;
+  Type_Struct& operator=(const Type_Struct&) = delete;
   ~Type_Struct();
   void serialize(void* noncontiguous, void* contiguous, int count);
   void unserialize(void* contiguous_vector, void* noncontiguous_vector, int count, MPI_Op op);
 };
 
-
-}
-}
+} // namespace smpi
+} // namespace simgrid
 
 #endif