|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <MsgBuffer.h>
Public Member Functions | |
| MsgBuffer (Format *f, int count, int offset=0) | |
| MsgBuffer (Format *f, char *d, int size) | |
| bool | add (Message *) |
| Message * | get () |
| template<class T> | |
| void | get (T &v) |
| template<class T> | |
| void | put (T &v) |
| int | getSize () |
| void * | getBuffer () |
| Format * | getFormat () |
| ~MsgBuffer () | |
Private Attributes | |
| Format * | format |
| unsigned int | datasize |
| unsigned int | writepos |
| unsigned int | readpos |
| std::vector< char > | data |
Definition at line 29 of file MsgBuffer.h.
| MsgBuffer::MsgBuffer | ( | Format * | f, |
| int | count, | ||
| int | offset = 0 ) |
| MsgBuffer::MsgBuffer | ( | Format * | f, |
| char * | d, | ||
| int | size ) |
| MsgBuffer::~MsgBuffer | ( | ) |
Definition at line 40 of file MsgBuffer.cpp.
| bool MsgBuffer::add | ( | Message * | msg | ) |
Definition at line 44 of file MsgBuffer.cpp.
References Message::MsgItem::data(), data, datasize, format, Message::item(), Message::MsgItem::numBytes(), Message::MsgItem::numElems(), Message::size(), and writepos.
Referenced by BoxLibLayout< T, Dim >::update().
| Message * MsgBuffer::get | ( | ) |
Definition at line 71 of file MsgBuffer.cpp.
References data, datasize, format, Message::putmsg(), readpos, Message::setCopy(), and Message::setDelete().
Referenced by IpplParticleBase< T >::ghostDestroy(), IpplParticleBase< T >::ghostPutMessage(), ParticlePos_t< double, 3 >::new_swap_particles(), ParticlePos_t< double, 3 >::new_swap_particles(), IpplParticleBase< PLayout >::readMsgBuffer(), and BoxLibLayout< T, Dim >::update().
|
inline |
Definition at line 39 of file MsgBuffer.h.
|
inline |
Definition at line 54 of file MsgBuffer.h.
References data.
Referenced by BoxLibLayout< T, Dim >::update(), and BoxParticleCachingPolicy< T, Dim, Mesh >::updateGhostParticles().
|
inline |
Definition at line 59 of file MsgBuffer.h.
References format.
|
inline |
Definition at line 50 of file MsgBuffer.h.
References writepos.
Referenced by BoxLibLayout< T, Dim >::update(), and BoxParticleCachingPolicy< T, Dim, Mesh >::updateGhostParticles().
|
inline |
Definition at line 45 of file MsgBuffer.h.
|
private |
Definition at line 68 of file MsgBuffer.h.
Referenced by add(), get(), get(), getBuffer(), MsgBuffer(), MsgBuffer(), and put().
|
private |
Definition at line 67 of file MsgBuffer.h.
Referenced by add(), get(), MsgBuffer(), and MsgBuffer().
|
private |
Definition at line 66 of file MsgBuffer.h.
Referenced by add(), get(), getFormat(), MsgBuffer(), and MsgBuffer().
|
private |
Definition at line 67 of file MsgBuffer.h.
Referenced by get(), get(), MsgBuffer(), and MsgBuffer().
|
private |
Definition at line 67 of file MsgBuffer.h.
Referenced by add(), getSize(), MsgBuffer(), MsgBuffer(), and put().