![]() |
Ginkgo Generated from branch based on main. Ginkgo version 1.10.0
A numerical linear algebra library targeting many-core architectures
|
A move-only wrapper for a contiguous MPI_Datatype. More...
#include <ginkgo/core/base/mpi.hpp>
Public Member Functions | |
contiguous_type (int count, MPI_Datatype old_type) | |
Constructs a wrapper for a contiguous MPI_Datatype. | |
contiguous_type () | |
Constructs empty wrapper with MPI_DATATYPE_NULL. | |
contiguous_type (const contiguous_type &)=delete | |
Disallow copying of wrapper type. | |
contiguous_type & | operator= (const contiguous_type &)=delete |
Disallow copying of wrapper type. | |
contiguous_type (contiguous_type &&other) noexcept | |
Move constructor, leaves other with MPI_DATATYPE_NULL. | |
contiguous_type & | operator= (contiguous_type &&other) noexcept |
Move assignment, leaves other with MPI_DATATYPE_NULL. | |
~contiguous_type () | |
Destructs object by freeing wrapped MPI_Datatype. | |
MPI_Datatype | get () const |
Access the underlying MPI_Datatype. |
A move-only wrapper for a contiguous MPI_Datatype.
The underlying MPI_Datatype is automatically created and committed when an object of this type is constructed, and freed when it is destructed.
|
inline |
Constructs a wrapper for a contiguous MPI_Datatype.
count | the number of old_type elements the new datatype contains. |
old_type | the MPI_Datatype that is contained. |
Referenced by contiguous_type(), contiguous_type(), operator=(), and operator=().
|
inlinenoexcept |
Move constructor, leaves other with MPI_DATATYPE_NULL.
other | to be moved from object. |
References contiguous_type().
|
inline |
Access the underlying MPI_Datatype.
|
inlinenoexcept |
Move assignment, leaves other with MPI_DATATYPE_NULL.
other | to be moved from object. |
References contiguous_type().