OPAL (Object Oriented Parallel Accelerator Library) 2022.1
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 |
||
) |
Definition at line 23 of file MsgBuffer.cpp.
References data, datasize, format, and Format::getSize().
MsgBuffer::MsgBuffer | ( | Format * | f, |
char * | d, | ||
int | size | ||
) |
Definition at line 31 of file MsgBuffer.cpp.
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, Format::getItemBytes(), Format::getItemCount(), Format::getItemElems(), 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, Format::getItemBytes(), Format::getItemCount(), Format::getItemElems(), Format::getSize(), Message::putmsg(), readpos, Message::setCopy(), and Message::setDelete().
Referenced by IpplParticleBase< T >::ghostDestroy(), IpplParticleBase< T >::ghostPutMessage(), ParticleSpatialLayout< T, Dim, Mesh, CachingPolicy >::new_swap_particles(), IpplParticleBase< PLayout >::readMsgBuffer(), and BoxLibLayout< T, Dim >::update().
|
inline |
Definition at line 39 of file MsgBuffer.h.
References data, readpos, and Attrib::Legacy::Distribution::T.
|
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.
References data, Attrib::Legacy::Distribution::T, and writepos.
|
private |
Definition at line 68 of file MsgBuffer.h.
Referenced by add(), get(), getBuffer(), MsgBuffer(), and put().
|
private |
Definition at line 67 of file MsgBuffer.h.
Referenced by add(), get(), and MsgBuffer().
|
private |
Definition at line 66 of file MsgBuffer.h.
Referenced by add(), get(), getFormat(), and MsgBuffer().
|
private |
Definition at line 67 of file MsgBuffer.h.
Referenced by get().
|
private |
Definition at line 67 of file MsgBuffer.h.