OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
OPAL
|
#include <Message.h>
Classes | |
class | MsgItem |
Public Member Functions | |
Message (unsigned int numelems=8) | |
~Message () | |
size_t | size () const |
size_t | removed () const |
bool | empty () const |
MsgItem & | item (size_t n) |
const MsgItem & | item (size_t n) const |
Message & | setCopy (const bool c) |
bool | willCopy () const |
Message & | setDelete (const bool c) |
bool | willDelete () const |
Message & | clear () |
void * | remove () |
void | useCommunicate (Communicate *c, void *d) |
template<class T > | |
Message & | put (const T &val) |
Message & | put (const char *d) |
Message & | put (const std::string &s) |
template<class ForwardIterator > | |
Message & | put (ForwardIterator beg, ForwardIterator end) |
template<class RandomAccessIterator > | |
Message & | put (const std::vector< size_t > &indices, RandomAccessIterator beg) |
Message & | putmsg (void *, int, int=0) |
template<class T > | |
Message & | get (const T &cval) |
Message & | get (const std::string &s) |
Message & | get () |
template<class OutputIterator > | |
Message & | get_iter (OutputIterator o) |
Message & | getmsg (void *) |
Private Member Functions | |
void | deleteMsgItem () |
Private Attributes | |
std::vector< MsgItem > | MsgItemList |
size_t | numRemoved |
bool | DoCopy |
bool | DoDelete |
Communicate * | comm |
void * | commdata |
|
inline |
Definition at line 285 of file Message.h.
References MsgItemList.
Message::~Message | ( | ) |
Definition at line 44 of file MessageFunctions.cpp.
References Hypervolume::n.
Message & Message::clear | ( | void | ) |
Definition at line 146 of file MessageFunctions.cpp.
|
private |
Definition at line 65 of file MessageFunctions.cpp.
|
inline |
Definition at line 308 of file Message.h.
References size().
Referenced by PutSingleItem< T, false, false >::get_iter().
Definition at line 484 of file Message.h.
Referenced by DiscField< Dim >::distribute_offsets(), FieldLayout< Dim >::FieldLayout(), PutSingleItem< T, false, false >::get_iter(), Vnode< Dim >::getMessage(), CompressedBrickIterator< T, Dim >::getMessage(), BrickIterator< T, Dim >::getMessage(), IpplParticleBase< PLayout >::getMessage(), AntiSymTenzor< T, 1 >::getMessage(), AnyHolder< T, OP >::getMessage(), Index::getMessage(), BoundsHolder< T, D >::getMessage(), getMessage(), IpplParticleBase< PLayout >::ghostGetMessage(), ParticleSpatialLayout< T, Dim, Mesh >::new_swap_particles(), pap(), FieldLayout< Dim >::read(), DiscParticle::read_meta(), DiscField< Dim >::read_meta(), ParticleSpatialLayout< T, Dim, Mesh >::rebuild_layout(), ParticleSpatialLayout< T, Dim, Mesh, CachingPolicy >::rebuild_neighbor_data(), ConejoBalancer::receiveVnodeDomains(), ConejoBalancer::receiveVnodesToSend(), ConejoBalancer::receiveWeights(), IpplParticleBase< PLayout >::resetID(), LossDataSink::saveASCII(), scatter(), ParallelCyclotronTracker::singleParticleDump(), spap(), ParticleUniformLayout< T, Dim >::update(), ParticleCashedLayout< T, Dim, Mesh >::update(), ParticleInteractLayout< T, Dim, Mesh >::update(), ParticleSpatialLayout< T, Dim, Mesh, CachingPolicy >::update(), and VnodeMultiRepartition().
|
inline |
|
inline |
Definition at line 519 of file Message.h.
Referenced by vec< unsigned, Dim >::getMessage(), PRegion< T >::getMessage(), getMessage(), getMessage_iter(), and FieldLayout< Dim >::read().
Message & Message::getmsg | ( | void * | data | ) |
Definition at line 111 of file MessageFunctions.cpp.
References Message::MsgItem::data(), endl(), ERRORMSG, Message::MsgItem::numBytes(), and PAssert.
Referenced by PutSingleItem< T, true, false >::get(), PutSingleItem< T, true, true >::get(), get(), spap(), and VnodeMultiRepartition().
|
inline |
Definition at line 316 of file Message.h.
References MsgItemList, and numRemoved.
Referenced by MsgBuffer::add(), Communicate::fill_msg_buffer(), Communicate::find_msg_length(), Format::Format(), PutSingleItem< T, false, false >::get_iter(), BrickIterator< T, Dim >::getMessage(), operator<<(), reduce(), and scatter().
|
inline |
Definition at line 320 of file Message.h.
References MsgItemList, and numRemoved.
Definition at line 414 of file Message.h.
References T.
Referenced by BareField< T, Dim >::accumGuardCells(), BcastCuts(), ConejoBalancer::broadcastVnodesToSend(), DiscField< Dim >::distribute_offsets(), FieldLayout< Dim >::FieldLayout(), BareField< T, Dim >::fillGuardCells(), IpplParticleBase< PLayout >::ghostPutMessage(), pap(), put(), vec< unsigned, Dim >::putMessage(), Vnode< Dim >::putMessage(), CompressedBrickIterator< T, Dim >::putMessage(), BrickIterator< T, Dim >::putMessage(), PRegion< T >::putMessage(), IpplParticleBase< PLayout >::putMessage(), AntiSymTenzor< T, 1 >::putMessage(), AnyHolder< T, OP >::putMessage(), Index::putMessage(), BoundsHolder< T, D >::putMessage(), putMessage(), DiscParticle::read(), FieldLayout< Dim >::read(), DiscParticle::read_meta(), DiscField< Dim >::read_meta(), ParticleSpatialLayout< T, Dim, Mesh >::rebuild_layout(), ParticleSpatialLayout< T, Dim, Mesh, CachingPolicy >::rebuild_neighbor_data(), Communicate::request_retransmission(), IpplParticleBase< PLayout >::resetID(), LossDataSink::saveASCII(), Communicate::send_ok_message(), ConejoBalancer::sendVnodeDomains(), ConejoBalancer::sendWeights(), ParallelCyclotronTracker::singleParticleDump(), spap(), ParticleUniformLayout< T, Dim >::update(), ParticleCashedLayout< T, Dim, Mesh >::update(), ParticleInteractLayout< T, Dim, Mesh >::update(), ParticleSpatialLayout< T, Dim, Mesh, CachingPolicy >::update(), VnodeMultiRepartition(), and DiscParticle::write().
|
inline |
|
inline |
|
inline |
|
inline |
Message & Message::putmsg | ( | void * | data, |
int | s, | ||
int | nelem = 0 |
||
) |
Definition at line 78 of file MessageFunctions.cpp.
Referenced by DiscField< Dim >::distribute_offsets(), MsgBuffer::get(), PutSingleItem< T, false, false >::put(), PutSingleItem< T, true, false >::put(), PutSingleItem< T, true, true >::put(), put(), BrickIterator< T, Dim >::putMessage(), DiscParticle::read(), spap(), and Communicate::unpack_message().
void * Message::remove | ( | ) |
Definition at line 166 of file MessageFunctions.cpp.
References Message::MsgItem::cancelDelete(), Message::MsgItem::data(), Message::MsgItem::numBytes(), and Message::MsgItem::willNeedDelete().
|
inline |
|
inline |
Definition at line 327 of file Message.h.
References Physics::c, and DoCopy.
Referenced by DiscField< Dim >::distribute_offsets(), MsgBuffer::get(), PutSingleItem< T, false, false >::put(), Vektor< double, Dim >::putMessage(), BrickIterator< T, Dim >::putMessage(), Tenzor< double, 3 >::putMessage(), AntiSymTenzor< T, D >::putMessage(), SymTenzor< double, 6 >::putMessage(), AntiSymTenzor< T, 1 >::putMessage(), DiscParticle::read(), and Communicate::unpack_message().
|
inline |
Definition at line 339 of file Message.h.
References Physics::c, and DoDelete.
Referenced by DiscField< Dim >::distribute_offsets(), MsgBuffer::get(), PutSingleItem< T, false, false >::put(), BrickIterator< T, Dim >::putMessage(), DiscParticle::read(), and Communicate::unpack_message().
|
inline |
Definition at line 300 of file Message.h.
References MsgItemList, and numRemoved.
Referenced by BareField< T, Dim >::accumGuardCells(), MsgBuffer::add(), ParallelPeriodicFace< T, D, M, C >::apply(), ParallelInterpolationFace< T, D, M, C >::apply(), assign(), empty(), Communicate::fill_msg_buffer(), BareField< T, Dim >::fillGuardCells(), Communicate::find_msg_length(), Format::Format(), IndexedReceive(), CommSHMEMPI::mysend(), operator<<(), PutSingleItem< T, false, false >::put(), reduce(), reduce_masked(), and scatter().
|
inline |
Definition at line 366 of file Message.h.
References Physics::c, comm, and commdata.
Referenced by CommPM::myreceive(), CommMPI::myreceive(), CommSHMEMPI::myreceive(), CommMPI::mysend(), CommSHMEMPI::mysend(), and CommPM::pickup_message().
|
inline |
Definition at line 332 of file Message.h.
References DoCopy.
Referenced by PutSingleItem< T, false, false >::put().
|
inline |
|
private |
Definition at line 546 of file Message.h.
Referenced by useCommunicate().
|
private |
Definition at line 547 of file Message.h.
Referenced by useCommunicate().
|
private |
Definition at line 539 of file Message.h.
Referenced by setCopy(), and willCopy().
|
private |
Definition at line 542 of file Message.h.
Referenced by setDelete(), and willDelete().
|
private |
|
private |