Base class for parallel data transport models. More...
#include <PTransport.h>
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. | |
Base class for parallel data transport models.
Internal or
Internal
Definition at line 77 of file PTransport.h.
| casa::PTransport::PTransport | ( | ) | [inline] |
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.
| 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().
| Int casa::PTransport::connect | ( | Int | i | ) | [inline] |
Set the properties of the current connection including source/destination and message tag.
Definition at line 91 of file PTransport.h.
References aWorker.
| void casa::PTransport::connectAnySource | ( | ) | [inline] |
Definition at line 92 of file PTransport.h.
References anySource(), and aWorker.
| void casa::PTransport::connectToController | ( | ) | [inline] |
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 | ( | Record & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | Bool & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | String & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | Int & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | DComplex & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | Complex & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | Double & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | Float & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | Array< Int > & | ) | [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< Complex > & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | Array< Double > & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::get | ( | Array< Float > & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
Referenced by casa::Applicator::get().
| Bool casa::PTransport::isController | ( | ) | [inline] |
Status functions for worker/controller designation.
Definition at line 98 of file PTransport.h.
References controllerRank(), and cpu().
| Bool casa::PTransport::isWorker | ( | ) | [inline] |
Definition at line 99 of file PTransport.h.
References controllerRank(), and cpu().
| Int casa::PTransport::numThreads | ( | ) | [inline] |
| virtual Int casa::PTransport::put | ( | const Record & | ) | [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 String & | ) | [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 DComplex & | ) | [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 Double & | ) | [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 Array< Int > & | ) | [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< Complex > & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| virtual Int casa::PTransport::put | ( | const Array< Double > & | ) | [pure virtual] |
Implemented in casa::SerialTransport.
| 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().
| void casa::PTransport::setAnyTag | ( | ) | [inline] |
Definition at line 95 of file PTransport.h.
| void casa::PTransport::setTag | ( | Int | tag | ) | [inline] |
Definition at line 94 of file PTransport.h.
References aTag.
Int casa::PTransport::aTag [protected] |
Current message tag.
Definition at line 148 of file PTransport.h.
Referenced by setAnyTag(), and setTag().
Int casa::PTransport::aWorker [protected] |
Current source or destination process.
Definition at line 145 of file PTransport.h.
Referenced by connect(), connectAnySource(), and connectToController().
Int casa::PTransport::myCpu [protected] |
Int casa::PTransport::numprocs [protected] |
1.6.1