Bundle char container for communications. More...
#include "Class_Comm_Buffer.hpp"
Public Member Functions | |
Class_Comm_Buffer (MPI_Comm comm_) | |
Class_Comm_Buffer (uint32_t size, char value, MPI_Comm comm_) | |
Class_Comm_Buffer (const Class_Comm_Buffer &other) | |
Class_Comm_Buffer & | operator= (const Class_Comm_Buffer &rhs) |
template<class T > | |
void | read (T &val) |
template<class T > | |
void | write (T &val) |
Friends | |
template<int dim> | |
class | Class_Para_Tree |
Bundle char container for communications.
This calls is intended to provide the user with a basic container for data MPI communications.
The user should use this container implementing his communications interface specializations.
More precisely, he has to call read/write methods to read/write every MPI-compatible POD datum in the buffer. By this way, data communications are data independent.
Definition at line 40 of file Class_Comm_Buffer.hpp.
void Class_Comm_Buffer::read | ( | T & | val | ) |
This method reads from commBuffer the user MPI-compatible POD datum of type T.
[in] | val | The values that has to be read from the buffer. |
Definition at line 8 of file Class_Comm_Buffer.tpp.
void Class_Comm_Buffer::write | ( | T & | val | ) |
This method writes a MPI-compatible POD datum of type T in commBuffer
[in] | val | The values that has to be written in the buffer. |
Definition at line 2 of file Class_Comm_Buffer.tpp.