Diffpack Documentation

(Functionality not available, requires installation of an additional Diffpack Toolbox)


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

CharPackMPI Class Reference

send data packed by CharPack. More...

#include <CharPackMPI.h>

Inheritance diagram for CharPackMPI::

CharPack List of all members.

Public Methods

 CharPackMPI ()
 CharPackMPI (int nbytes)
 ~CharPackMPI ()
void initiateSend (int dest, int tag, MPI_Comm comm=MPI_COMM_WORLD)
void initiateRecv (int &length, int source, int tag, MPI_Comm comm=MPI_COMM_WORLD)
void send (int dest, int tag, MPI_Comm comm=MPI_COMM_WORLD)
void receive (int length, int source, int tag, MPI_Comm comm=MPI_COMM_WORLD)

Detailed Description

send data packed by CharPack.

NAME: CharPackMPI - send data packed by CharPack

DESCRIPTION:

The class enables packing and communication of data, useful in parallel/distributed programming. Currently the class only implements blocking send and receive. CharPack'ed arrays can easily be distributed non-blocking by making explicit calls to non-blocking MPI-routines.


Constructor & Destructor Documentation

CharPackMPI::CharPackMPI ( ) [inline]
 

One must know the upper limit of the char array (the number of bytes to be packed) when creating a "CharPackMPI" object. Hopefully, the programmer is able to compute this length exactly.

CharPackMPI::CharPackMPI ( int nbytes ) [inline]
 

CharPackMPI::~CharPackMPI ( ) [inline]
 


Member Function Documentation

void CharPackMPI::initiateRecv ( int & length,
int source,
int tag,
MPI_Comm comm = MPI_COMM_WORLD )
 

set up communication by receiving the size of the packed array to be sent using function "send"

void CharPackMPI::initiateSend ( int dest,
int tag,
MPI_Comm comm = MPI_COMM_WORLD )
 

set up communication by sending the size of the packed array to be sent using function "send"

void CharPackMPI::receive ( int length,
int source,
int tag,
MPI_Comm comm = MPI_COMM_WORLD )
 

void CharPackMPI::send ( int dest,
int tag,
MPI_Comm comm = MPI_COMM_WORLD )
 


The documentation for this class was generated from the following file:
Copyright © 2003 inuTech GmbH. All rights reserved.