casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casa::SerialTransport Class Reference

Putting in the MPI Transport stuff only makes sense if we have MPI. More...

#include <PTransport.h>

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

Public Member Functions

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

Private Member Functions

casacore::Int add2Queue (void *)
 
void * getFromQueue ()
 

Private Attributes

casacore::uInt inQue
 
casacore::uInt outQue
 
casacore::uInt lastInQue
 
casacore::PtrBlock< void * > _data
 

Additional Inherited Members

- Protected Attributes inherited from casa::PTransport
casacore::Int numprocs
 Number of processes. More...
 
casacore::Int myCpu
 Rank of current process. More...
 
casacore::Int aWorker
 Current source or destination process. More...
 
casacore::Int aTag
 Current message tag. More...
 

Detailed Description

Putting in the MPI Transport stuff only makes sense if we have MPI.

Serial casacore::Data Transport Model

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

SerialTransport is your basic no-op. We're just passing the pointers to avoid unnecessary data copying.

Definition at line 284 of file PTransport.h.

Constructor & Destructor Documentation

casa::SerialTransport::SerialTransport ( )
inline

Default constructor and destructor.

Definition at line 287 of file PTransport.h.

References _data, and casacore::PtrBlock< T >::resize().

virtual casa::SerialTransport::~SerialTransport ( )
inlinevirtual

Definition at line 289 of file PTransport.h.

Member Function Documentation

casacore::Int casa::SerialTransport::add2Queue ( void *  )
private
virtual casacore::Int casa::SerialTransport::anySource ( )
inlinevirtual

Implements casa::PTransport.

Definition at line 293 of file PTransport.h.

virtual casacore::Int casa::SerialTransport::anyTag ( )
inlinevirtual

Default source and message tag values.

Implements casa::PTransport.

Definition at line 292 of file PTransport.h.

virtual casacore::Int casa::SerialTransport::controllerRank ( )
inlinevirtual

Define the rank of the controller process.

Implements casa::PTransport.

Definition at line 296 of file PTransport.h.

virtual casacore::Int casa::SerialTransport::get ( casacore::Array< casacore::Float > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Array< casacore::Double > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Array< casacore::Complex > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Array< casacore::DComplex > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Array< casacore::Int > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Float )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Double )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Complex &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::DComplex &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Int )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::String )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Bool )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::get ( casacore::Record )
virtual

Implements casa::PTransport.

void* casa::SerialTransport::getFromQueue ( )
private
virtual casacore::Int casa::SerialTransport::put ( const casacore::Array< casacore::Float > &  )
virtual

Get and put functions on the data transport layer.

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Array< casacore::Double > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Array< casacore::Complex > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Array< casacore::DComplex > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Array< casacore::Int > &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Float )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Double )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Complex &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::DComplex &  )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Int )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::String )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Bool )
virtual

Implements casa::PTransport.

virtual casacore::Int casa::SerialTransport::put ( const casacore::Record )
virtual

Implements casa::PTransport.

Member Data Documentation

casacore::PtrBlock<void *> casa::SerialTransport::_data
private

Definition at line 331 of file PTransport.h.

Referenced by SerialTransport().

casacore::uInt casa::SerialTransport::inQue
private

Definition at line 328 of file PTransport.h.

casacore::uInt casa::SerialTransport::lastInQue
private

Definition at line 330 of file PTransport.h.

casacore::uInt casa::SerialTransport::outQue
private

Definition at line 329 of file PTransport.h.


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