|
My Project
|
Simplifies handling of buffers to be used in conjunction with MPI. More...
#include <mpibuffer.hh>
Public Member Functions | |
| MpiBuffer (size_t size) | |
| MpiBuffer (const MpiBuffer &)=default | |
| void | resize (size_t newSize) |
| Set the size of the buffer. | |
| void | send (unsigned peerRank) |
| Send the buffer asyncronously to a peer process. | |
| void | wait () |
| Wait until the buffer was send to the peer completely. | |
| void | receive (unsigned peerRank) |
| Receive the buffer syncronously from a peer rank. | |
| size_t | size () const |
| Returns the number of data objects in the buffer. | |
| DataType & | operator[] (size_t i) |
| Provide access to the buffer data. | |
| const DataType & | operator[] (size_t i) const |
| Provide access to the buffer data. | |
Simplifies handling of buffers to be used in conjunction with MPI.