Structure defining a buffer for MPI. More...
Public Member Functions | |
template<typename T > | |
Data (Matrix< T > &m) | |
Init from reference to PLMD::Matrix. More... | |
Data (std::string &s) | |
Init from reference to std::string. More... | |
template<typename T > | |
Data (std::vector< T > &v) | |
Init from reference to std::vector. More... | |
template<typename T > | |
Data (T &p) | |
Init from reference. More... | |
template<typename T > | |
Data (T *p, int s) | |
Init from pointer and size. More... | |
template<unsigned n, unsigned m> | |
Data (TensorGeneric< n, m > &p) | |
Init from reference to TensorGeneric. More... | |
template<unsigned n, unsigned m> | |
Data (TensorGeneric< n, m > *p, int s) | |
Init from pointer to TensorGeneric. More... | |
template<unsigned n> | |
Data (VectorGeneric< n > &p) | |
Init from reference to VectorGeneric. More... | |
template<unsigned n> | |
Data (VectorGeneric< n > *p, int s) | |
Init from pointer to VectorGeneric. More... | |
Public Attributes | |
int | nbytes =0 |
void * | pointer |
int | size |
MPI_Datatype | type |
Structure defining a buffer for MPI.
It contains info on the pointed data and its type and size. It is useful to allow wrapper of MPI functions where the triplet (buffer,type,size) is grouped into a single object. It can be built starting from different kinds of data. To implement compatibility of MPI wrappers with e.g. vectors, add constructors here.
|
inline |
Init from pointer and size.
|
inlineexplicit |
Init from reference.
|
inlineexplicit |
Init from pointer to VectorGeneric.
|
inlineexplicit |
Init from reference to VectorGeneric.
|
inlineexplicit |
Init from pointer to TensorGeneric.
|
inlineexplicit |
Init from reference to TensorGeneric.
|
inlineexplicit |
Init from reference to std::vector.
|
inlineexplicit |
Init from reference to PLMD::Matrix.
|
inlineexplicit |
Init from reference to std::string.
int PLMD::Communicator::Data::nbytes =0 |
void* PLMD::Communicator::Data::pointer |
int PLMD::Communicator::Data::size |
MPI_Datatype PLMD::Communicator::Data::type |
Hosted by GitHub
![]() |
![]() |