Main Page | Class Hierarchy | Class List | File List | Class Members

Channel Class Reference

#include <Channel.h>

List of all members.

Public Member Functions

int size () const
int rank () const
bool closed () const
void close ()
virtual void sendInt (int destRank, int i) const =0
virtual int recvInt (int &srcRank) const =0
virtual int recvIntFrom (int srcRank) const =0
virtual void sendBytes (int destRank, const unsigned char *buf, int count) const =0
virtual unsigned char * recvBytes (int srcRank, int count) const =0

Protected Member Functions

 Channel (const Channel &)
 Copy constructor. Not supported.
Channeloperator= (const Channel &)
 Assignment operator. Not supported.

Protected Attributes

int m_size
 The number of processes involved in the parallel search.
int m_rank
 The rank of the current process.
bool m_closed
 Got termination notification.


Detailed Description

The super class of all the communication engines for PCSPs (parallel CSPs).


Member Function Documentation

virtual unsigned char* Channel::recvBytes int  srcRank,
int  count
const [pure virtual]
 

Wait for the given number of bytes from the given process. The data is returned in a newly allocate buffer. It is the caller's responsability to `delete' it.

virtual int Channel::recvInt int &  srcRank  )  const [pure virtual]
 

Wait for an integer from any process. The rank of the source is placed in srcRank.

virtual int Channel::recvIntFrom int  srcRank  )  const [pure virtual]
 

Wait for an integer from the given process.

virtual void Channel::sendBytes int  destRank,
const unsigned char *  buf,
int  count
const [pure virtual]
 

Send the given number of bytes to the given process.

virtual void Channel::sendInt int  destRank,
int  i
const [pure virtual]
 

Send an integer.


The documentation for this class was generated from the following file:
Generated on Wed May 25 12:21:16 2005 for csp.kdevelop by  doxygen 1.3.9.1