|
OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <Formatter.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 57 of file Formatter.h.
| MsgBuffer::MsgBuffer | ( | Format * | f, |
| int | count, | ||
| int | offset = 0 |
||
| ) |
Definition at line 28 of file Formatter.cpp.
References data, datasize, format, and Format::getSize().

| MsgBuffer::MsgBuffer | ( | Format * | f, |
| char * | d, | ||
| int | size | ||
| ) |
Definition at line 36 of file Formatter.cpp.
| MsgBuffer::~MsgBuffer | ( | ) |
Definition at line 45 of file Formatter.cpp.
| bool MsgBuffer::add | ( | Message * | msg | ) |
Definition at line 49 of file Formatter.cpp.
References data, Message::MsgItem::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(), IpplParticleBase< PLayout >::writeMsgBuffer(), and IpplParticleBase< PLayout >::writeMsgBufferWithOffsets().

| Message * MsgBuffer::get | ( | ) |
Definition at line 76 of file Formatter.cpp.
References data, datasize, format, Format::getItemBytes(), Format::getItemCount(), Format::getItemElems(), Format::getSize(), Message::putmsg(), readpos, Message::setCopy(), and Message::setDelete().
Referenced by IpplParticleBase< PLayout >::readGhostMsgBuffer(), IpplParticleBase< PLayout >::readMsgBuffer(), and BoxLibLayout< T, Dim >::update().

|
inline |
Definition at line 68 of file Formatter.h.
|
inline |
Definition at line 85 of file Formatter.h.
References data.
Referenced by BoxLibLayout< T, Dim >::update(), and BoxParticleCachingPolicy< T, Dim, Mesh >::updateGhostParticles().
|
inline |
Definition at line 90 of file Formatter.h.
References format.
|
inline |
Definition at line 81 of file Formatter.h.
References writepos.
Referenced by BoxLibLayout< T, Dim >::update(), and BoxParticleCachingPolicy< T, Dim, Mesh >::updateGhostParticles().
|
inline |
Definition at line 75 of file Formatter.h.
|
private |
Definition at line 96 of file Formatter.h.
Referenced by add(), get(), getBuffer(), MsgBuffer(), and put().
|
private |
Definition at line 95 of file Formatter.h.
Referenced by add(), get(), and MsgBuffer().
|
private |
Definition at line 94 of file Formatter.h.
Referenced by add(), get(), getFormat(), and MsgBuffer().
|
private |
Definition at line 95 of file Formatter.h.
Referenced by get().
|
private |
Definition at line 95 of file Formatter.h.
1.8.5