arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Communicator Class Reference

#include <Communicator.h>

Inheritance diagram for Communicator:

MPICommunicator List of all members.

Public Member Functions

 Communicator (void)
 ~Communicator (void)
virtual bool Send (KokoProcID id, KokoBuffer &buf, KokoTag tag)=0
virtual int Recv (KokoProcID id, KokoBuffer &buf, KokoTag tag)=0
virtual int SendRecv (KokoProcID to, KokoBuffer &sendbuf, KokoTag sendtag, KokoProcID from, KokoBuffer &recvbuf, KokoTag recvtag)=0
virtual KokoMesgHandle ASend (KokoProcID id, KokoBuffer &buf, KokoTag tag)=0
virtual KokoMesgHandle ARecv (KokoProcID id, KokoBuffer &buf, KokoTag tag)=0
virtual bool Wait (KokoMesgHandle &hand)=0
virtual bool Test (KokoMesgHandle &hand)=0
virtual bool Broadcast (KokoBuffer &buf, KokoProcID root, KokoTag tag)=0
virtual bool Barrier (void)=0
virtual KokoProcID ID (void)
virtual KokoProcID Rank (void)
virtual unsigned int NumProcessors (void)
virtual int RecvSize (void)
virtual KokoTag RecvTag (void)
virtual KokoProcID RecvSource (void)

Protected Attributes

KokoProcID _id
int _nprocs
KokoProcID _recv_src
int _recv_bytes
KokoTag _recv_tag

Constructor & Destructor Documentation

Communicator::Communicator void   )  [inline]
 

Definition at line 35 of file Communicator.h.

References _id, _nprocs, _recv_bytes, _recv_src, _recv_tag, and KOKO_ANY_TAG.

Communicator::~Communicator void   )  [inline]
 

Definition at line 45 of file Communicator.h.


Member Function Documentation

virtual KokoMesgHandle Communicator::ARecv KokoProcID  id,
KokoBuffer buf,
KokoTag  tag
[pure virtual]
 

Implemented in MPICommunicator.

virtual KokoMesgHandle Communicator::ASend KokoProcID  id,
KokoBuffer buf,
KokoTag  tag
[pure virtual]
 

Implemented in MPICommunicator.

virtual bool Communicator::Barrier void   )  [pure virtual]
 

Implemented in MPICommunicator.

virtual bool Communicator::Broadcast KokoBuffer buf,
KokoProcID  root,
KokoTag  tag
[pure virtual]
 

Implemented in MPICommunicator.

Referenced by Messenger::WaitForBroadcast().

virtual KokoProcID Communicator::ID void   )  [inline, virtual]
 

Definition at line 88 of file Communicator.h.

References _id, and KokoProcID.

Referenced by MPICommunicator::Broadcast().

virtual unsigned int Communicator::NumProcessors void   )  [inline, virtual]
 

Definition at line 95 of file Communicator.h.

References _nprocs.

virtual KokoProcID Communicator::Rank void   )  [inline, virtual]
 

Definition at line 91 of file Communicator.h.

References _id, and KokoProcID.

virtual int Communicator::Recv KokoProcID  id,
KokoBuffer buf,
KokoTag  tag
[pure virtual]
 

Implemented in MPICommunicator.

Referenced by Messenger::WaitForMessage().

virtual int Communicator::RecvSize void   )  [inline, virtual]
 

Definition at line 100 of file Communicator.h.

References _recv_bytes.

virtual KokoProcID Communicator::RecvSource void   )  [inline, virtual]
 

Definition at line 108 of file Communicator.h.

References _recv_src, and KokoProcID.

virtual KokoTag Communicator::RecvTag void   )  [inline, virtual]
 

Definition at line 105 of file Communicator.h.

References _recv_tag, and KokoTag.

Referenced by Messenger::WaitForBroadcast(), and Messenger::WaitForMessage().

virtual bool Communicator::Send KokoProcID  id,
KokoBuffer buf,
KokoTag  tag
[pure virtual]
 

Implemented in MPICommunicator.

virtual int Communicator::SendRecv KokoProcID  to,
KokoBuffer sendbuf,
KokoTag  sendtag,
KokoProcID  from,
KokoBuffer recvbuf,
KokoTag  recvtag
[pure virtual]
 

virtual bool Communicator::Test KokoMesgHandle hand  )  [pure virtual]
 

Implemented in MPICommunicator.

virtual bool Communicator::Wait KokoMesgHandle hand  )  [pure virtual]
 

Implemented in MPICommunicator.


Member Data Documentation

KokoProcID Communicator::_id [protected]
 

Definition at line 112 of file Communicator.h.

Referenced by Communicator(), ID(), MPICommunicator::MPICommunicator(), and Rank().

int Communicator::_nprocs [protected]
 

Definition at line 113 of file Communicator.h.

Referenced by Communicator(), MPICommunicator::MPICommunicator(), and NumProcessors().

int Communicator::_recv_bytes [protected]
 

Definition at line 115 of file Communicator.h.

Referenced by Communicator(), MPICommunicator::Recv(), RecvSize(), MPICommunicator::SendRecv(), MPICommunicator::Test(), and MPICommunicator::Wait().

KokoProcID Communicator::_recv_src [protected]
 

Definition at line 114 of file Communicator.h.

Referenced by Communicator(), MPICommunicator::Recv(), RecvSource(), and MPICommunicator::SendRecv().

KokoTag Communicator::_recv_tag [protected]
 

Definition at line 116 of file Communicator.h.

Referenced by MPICommunicator::Broadcast(), Communicator(), MPICommunicator::Recv(), RecvTag(), and MPICommunicator::SendRecv().


The documentation for this class was generated from the following file:
Send questions, comments, and bug reports to:
jmk