casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
casa::PTransport Class Reference

Base class for parallel data transport models. More...

#include <PTransport.h>

Inheritance diagram for casa::PTransport:
casa::SerialTransport

List of all members.

Public Member Functions

 PTransport ()
 Default constructor and destructor.
virtual ~PTransport ()
Int numThreads ()
 Return the number of processes.
Int cpu ()
 Return the current process rank.
Int connect (Int i)
 Set the properties of the current connection including source/destination and message tag.
void connectAnySource ()
void connectToController ()
void setTag (Int tag)
void setAnyTag ()
Bool isController ()
 Status functions for worker/controller designation.
Bool isWorker ()
virtual Int anyTag ()=0
 Default source and message tag values.
virtual Int anySource ()=0
virtual Int controllerRank ()=0
 Define the rank of the controller process.
virtual Int put (const Array< Float > &)=0
 Get and put functions on the parallel data transport layer.
virtual Int put (const Array< Double > &)=0
virtual Int put (const Array< Complex > &)=0
virtual Int put (const Array< DComplex > &)=0
virtual Int put (const Array< Int > &)=0
virtual Int put (const Float &)=0
virtual Int put (const Double &)=0
virtual Int put (const Complex &)=0
virtual Int put (const DComplex &)=0
virtual Int put (const Int &)=0
virtual Int put (const String &)=0
virtual Int put (const Bool &)=0
virtual Int put (const Record &)=0
virtual Int get (Array< Float > &)=0
virtual Int get (Array< Double > &)=0
virtual Int get (Array< Complex > &)=0
virtual Int get (Array< DComplex > &)=0
virtual Int get (Array< Int > &)=0
virtual Int get (Float &)=0
virtual Int get (Double &)=0
virtual Int get (Complex &)=0
virtual Int get (DComplex &)=0
virtual Int get (Int &)=0
virtual Int get (String &)=0
virtual Int get (Bool &)=0
virtual Int get (Record &)=0

Protected Attributes

Int numprocs
 Number of processes.
Int myCpu
 Rank of current process.
Int aWorker
 Current source or destination process.
Int aTag
 Current message tag.

Detailed Description

Base class for parallel data transport models.

Intended use:

Internal or

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Definition at line 77 of file PTransport.h.


Constructor & Destructor Documentation

Default constructor and destructor.

Definition at line 80 of file PTransport.h.

virtual casa::PTransport::~PTransport ( ) [inline, virtual]

Definition at line 81 of file PTransport.h.


Member Function Documentation

virtual Int casa::PTransport::anySource ( ) [pure virtual]

Implemented in casa::SerialTransport.

Referenced by connectAnySource().

virtual Int casa::PTransport::anyTag ( ) [pure virtual]

Default source and message tag values.

Implemented in casa::SerialTransport.

Referenced by setAnyTag().

Set the properties of the current connection including source/destination and message tag.

Definition at line 91 of file PTransport.h.

References aWorker.

Definition at line 92 of file PTransport.h.

References anySource(), and aWorker.

Definition at line 93 of file PTransport.h.

References aWorker, and controllerRank().

virtual Int casa::PTransport::controllerRank ( ) [pure virtual]

Define the rank of the controller process.

Implemented in casa::SerialTransport.

Referenced by connectToController(), isController(), and isWorker().

Int casa::PTransport::cpu ( ) [inline]

Return the current process rank.

Definition at line 87 of file PTransport.h.

References myCpu.

Referenced by isController(), and isWorker().

virtual Int casa::PTransport::get ( Array< Float > &  ) [pure virtual]

Implemented in casa::SerialTransport.

Referenced by casa::Applicator::get().

virtual Int casa::PTransport::get ( Array< Double > &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Array< Complex > &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Array< DComplex > &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Array< Int > &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Float ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Double ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Complex &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( DComplex &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Int ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( String ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Bool ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::get ( Record ) [pure virtual]

Implemented in casa::SerialTransport.

Status functions for worker/controller designation.

Definition at line 98 of file PTransport.h.

References controllerRank(), and cpu().

Definition at line 99 of file PTransport.h.

References controllerRank(), and cpu().

Return the number of processes.

Definition at line 84 of file PTransport.h.

References numprocs.

virtual Int casa::PTransport::put ( const Array< Float > &  ) [pure virtual]

Get and put functions on the parallel data transport layer.

Implemented in casa::SerialTransport.

Referenced by casa::Applicator::put().

virtual Int casa::PTransport::put ( const Array< Double > &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Array< Complex > &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Array< DComplex > &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Array< Int > &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Float ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Double ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Complex &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const DComplex &  ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Int ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const String ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Bool ) [pure virtual]

Implemented in casa::SerialTransport.

virtual Int casa::PTransport::put ( const Record ) [pure virtual]

Implemented in casa::SerialTransport.

void casa::PTransport::setAnyTag ( ) [inline]

Definition at line 95 of file PTransport.h.

References anyTag(), and aTag.

void casa::PTransport::setTag ( Int  tag) [inline]

Definition at line 94 of file PTransport.h.

References aTag.


Member Data Documentation

Current message tag.

Definition at line 148 of file PTransport.h.

Referenced by setAnyTag(), and setTag().

Current source or destination process.

Definition at line 145 of file PTransport.h.

Referenced by connect(), connectAnySource(), and connectToController().

Rank of current process.

Definition at line 142 of file PTransport.h.

Referenced by cpu().

Number of processes.

Definition at line 139 of file PTransport.h.

Referenced by numThreads().


The documentation for this class was generated from the following file: