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

class MsRowAttributes { More...

#include <MsRows.h>

Inheritance diagram for casa::ms::MsRow:
casa::ms::Vbi2MsRow

Public Member Functions

 MsRow (casacore::Int row, const vi::VisBuffer2 *vb)
 Constructors. More...
 
 MsRow (casacore::Int row, vi::VisBuffer2 *vb)
 Constructor for read/write access. More...
 
virtual ~MsRow ()
 
virtual void changeRow (casacore::Int row)
 
virtual casacore::Int antenna1 () const =0
 
virtual casacore::Int antenna2 () const =0
 
virtual casacore::Int arrayId () const =0
 
virtual casacore::Int correlationType () const =0
 
virtual casacore::Int dataDescriptionId () const =0
 
virtual casacore::Int feed1 () const =0
 
virtual casacore::Int feed2 () const =0
 
virtual casacore::Int fieldId () const =0
 
virtual casacore::Int observationId () const =0
 
virtual casacore::Int processorId () const =0
 
virtual casacore::Int scanNumber () const =0
 
virtual casacore::Int stateId () const =0
 
virtual casacore::Double exposure () const =0
 
virtual casacore::Double interval () const =0
 
virtual casacore::Int rowId () const =0
 
virtual casacore::Int spectralWindow () const =0
 
virtual casacore::Double time () const =0
 
virtual casacore::Double timeCentroid () const =0
 
virtual void setAntenna1 (casacore::Int)=0
 
virtual void setAntenna2 (casacore::Int)=0
 
virtual void setArrayId (casacore::Int)=0
 
virtual void setCorrelationType (casacore::Int)=0
 
virtual void setDataDescriptionId (casacore::Int)=0
 
virtual void setFeed1 (casacore::Int)=0
 
virtual void setFeed2 (casacore::Int)=0
 
virtual void setFieldId (casacore::Int)=0
 
virtual void setObservationId (casacore::Int)=0
 
virtual void setProcessorId (casacore::Int)=0
 
virtual void setScanNumber (casacore::Int)=0
 
virtual void setStateId (casacore::Int)=0
 
virtual void setExposure (casacore::Double)=0
 
virtual void setInterval (casacore::Double)=0
 
virtual void setRowId (casacore::Int)=0
 
virtual void setSigma (casacore::Int correlation, casacore::Float value)=0
 
virtual void setSigma (const casacore::Vector< casacore::Float > &value)=0
 
virtual void setTime (casacore::Double)=0
 
virtual void setTimeCentroid (casacore::Double)=0
 
virtual void setWeight (casacore::Int correlation, casacore::Float value)=0
 
virtual void setWeight (const casacore::Vector< casacore::Float > &value)=0
 
virtual const casacore::Vector
< casacore::Double
uvw () const =0
 
virtual void setUvw (const casacore::Vector< casacore::Double > &)=0
 
virtual const casacore::Complex & corrected (casacore::Int correlation, casacore::Int channel) const =0
 
virtual const casacore::Matrix
< casacore::Complex > & 
corrected () const =0
 
virtual void setCorrected (casacore::Int correlation, casacore::Int channel, const casacore::Complex &value)=0
 
virtual void setCorrected (const casacore::Matrix< casacore::Complex > &value)=0
 
virtual const casacore::Complex & model (casacore::Int correlation, casacore::Int channel) const =0
 
virtual const casacore::Matrix
< casacore::Complex > & 
model () const =0
 
virtual void setModel (casacore::Int correlation, casacore::Int channel, const casacore::Complex &value)=0
 
virtual void setModel (const casacore::Matrix< casacore::Complex > &value)=0
 
virtual const casacore::Complex & observed (casacore::Int correlation, casacore::Int channel) const =0
 
virtual const casacore::Matrix
< casacore::Complex > & 
observed () const =0
 
virtual void setObserved (casacore::Int correlation, casacore::Int channel, const casacore::Complex &value)=0
 
virtual void setObserved (const casacore::Matrix< casacore::Complex > &value)=0
 
virtual const casacore::FloatsingleDishData (casacore::Int correlation, casacore::Int channel) const =0
 
virtual const casacore::Matrix
< casacore::Float
singleDishData () const =0
 
virtual void setSingleDishData (casacore::Int correlation, casacore::Int channel, const casacore::Float &value)=0
 
virtual void setSingleDishData (const casacore::Matrix< casacore::Float > &value)=0
 
virtual casacore::Float sigma (casacore::Int correlation) const =0
 
virtual const casacore::Vector
< casacore::Float > & 
sigma () const =0
 
virtual casacore::Float weight (casacore::Int correlation) const =0
 
virtual const casacore::Vector
< casacore::Float > & 
weight () const =0
 
virtual casacore::Float weightSpectrum (casacore::Int correlation, casacore::Int channel) const =0
 
virtual const casacore::Matrix
< casacore::Float > & 
weightSpectrum () const =0
 
virtual casacore::Float sigmaSpectrum (casacore::Int correlation, casacore::Int channel) const =0
 
virtual const casacore::Matrix
< casacore::Float > & 
sigmaSpectrum () const =0
 
virtual casacore::Bool isRowFlagged () const =0
 
virtual const casacore::Matrix
< casacore::Bool > & 
flags () const =0
 
virtual void setFlags (const casacore::Matrix< casacore::Bool > &)=0
 
virtual casacore::Bool isFlagged (casacore::Int correlation, casacore::Int channel) const =0
 
virtual void setRowFlag (casacore::Bool isFlagged)=0
 
virtual void setFlags (casacore::Bool isFlagged, casacore::Int correlation, casacore::Int channel)=0
 

Protected Member Functions

casacore::Bool isWritable () const
 
casacore::uInt row () const
 
vi::VisBuffer2vb () const
 

Private Member Functions

 MsRow (const MsRow &other)
 

Private Attributes

const casacore::Bool isWritable_p
 
casacore::Int row_p
 
vi::VisBuffer2vb_p
 

Detailed Description

class MsRowAttributes {

public:

MsRowAttributes (casacore::Int row, VisBuffer2 * vb) : row_p (row), vb_p (vb) {}

casacore::Int antenna1 () const; casacore::Int antenna2 () const; casacore::Int array () const; casacore::Int dataDescriptionId () const; casacore::Int feed1 () const; casacore::Int feed2 () const; casacore::Int field () const; casacore::Int observation () const; casacore::Int processorId () const; casacore::Int scan () const; casacore::Int state () const;

private: };

class MsRowCoordinates {

public:

MsRowCoordinates (casacore::Int row, VisBuffer2 * vb) : row_p (row), vb_p (vb) {}

casacore::Double exposure () const; casacore::Int fieldId () const; casacore::Double interval () const; casacore::Double time () const { return vb_p->time() (row_p); } casacore::Double timeCentroid () const; const casacore::Vector<casacore::Double> & uvw () const;

private:

casacore::Int row_p; vi::VisBuffer2 * vb_p;

};

class MsRowData {

public:

MsRowData (casacore::Int row, VisBuffer2 * vb) : row_p (row), vb_p (vb) {}

const casacore::Complex & corrected (casacore::Int correlation, casacore::Int channel) const; const casacore::Complex & model (casacore::Int correlation, casacore::Int channel) const; const casacore::Complex & observed (casacore::Int correlation, casacore::Int channel) const { return vb_p->visCube () (correlation, channel, row_p); } const casacore::Float sigma () const; const casacore::Float weight () const; const casacore::Float weightSpectrum (casacore::Int correlation, casacore::Int channel) const;

private:

casacore::Int row_p; const vi::VisBuffer2 * vb_p;

};

class MsRowFlagging {

public:

MsRowFlagging (casacore::Int row, VisBuffer2 * vb) : row_p (row), vb_p (vb) {}

casacore::Bool isFlagged () const; casacore::Bool isFlagged (casacore::Int correlation, casacore::Int channel) const;

void setFlag (casacore::Bool isFlagged); void setFlag (casacore::Bool isFlagged, casacore::Int correlation, casacore::Int channel);

private:

casacore::Int row_p; vi::VisBuffer2 * vb_p; };

class MsRow {

public:

const MsRowAttributes & attributes () const; const MsRowCoordinates & coordinates () const; const MsRowData & data () const; const MsRowFlagging & flagging () const;

protected:

private:

int row_p; };

Definition at line 131 of file MsRows.h.

Constructor & Destructor Documentation

casa::ms::MsRow::MsRow ( casacore::Int  row,
const vi::VisBuffer2 vb 
)

Constructors.

Constructor for read-only access. Attempt to write will throw exception.

casa::ms::MsRow::MsRow ( casacore::Int  row,
vi::VisBuffer2 vb 
)

Constructor for read/write access.

virtual casa::ms::MsRow::~MsRow ( )
inlinevirtual

Definition at line 146 of file MsRows.h.

casa::ms::MsRow::MsRow ( const MsRow other)
private

Member Function Documentation

virtual casacore::Int casa::ms::MsRow::antenna1 ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::antenna2 ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::arrayId ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::changeRow ( casacore::Int  row)
inlinevirtual

Reimplemented in casa::ms::Vbi2MsRow.

Definition at line 148 of file MsRows.h.

References row(), and row_p.

virtual const casacore::Complex& casa::ms::MsRow::corrected ( casacore::Int  correlation,
casacore::Int  channel 
) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Matrix<casacore::Complex>& casa::ms::MsRow::corrected ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::correlationType ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::dataDescriptionId ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Double casa::ms::MsRow::exposure ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::feed1 ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::feed2 ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::fieldId ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Matrix<casacore::Bool>& casa::ms::MsRow::flags ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Double casa::ms::MsRow::interval ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Bool casa::ms::MsRow::isFlagged ( casacore::Int  correlation,
casacore::Int  channel 
) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Bool casa::ms::MsRow::isRowFlagged ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

casacore::Bool casa::ms::MsRow::isWritable ( ) const
protected
virtual const casacore::Complex& casa::ms::MsRow::model ( casacore::Int  correlation,
casacore::Int  channel 
) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Matrix<casacore::Complex>& casa::ms::MsRow::model ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::observationId ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Complex& casa::ms::MsRow::observed ( casacore::Int  correlation,
casacore::Int  channel 
) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Matrix<casacore::Complex>& casa::ms::MsRow::observed ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::processorId ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

casacore::uInt casa::ms::MsRow::row ( ) const
protected

Referenced by changeRow().

virtual casacore::Int casa::ms::MsRow::rowId ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::scanNumber ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setAntenna1 ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setAntenna2 ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setArrayId ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setCorrected ( casacore::Int  correlation,
casacore::Int  channel,
const casacore::Complex &  value 
)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setCorrected ( const casacore::Matrix< casacore::Complex > &  value)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setCorrelationType ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setDataDescriptionId ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setExposure ( casacore::Double  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setFeed1 ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setFeed2 ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setFieldId ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setFlags ( const casacore::Matrix< casacore::Bool > &  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setFlags ( casacore::Bool  isFlagged,
casacore::Int  correlation,
casacore::Int  channel 
)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setInterval ( casacore::Double  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setModel ( casacore::Int  correlation,
casacore::Int  channel,
const casacore::Complex &  value 
)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setModel ( const casacore::Matrix< casacore::Complex > &  value)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setObservationId ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setObserved ( casacore::Int  correlation,
casacore::Int  channel,
const casacore::Complex &  value 
)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setObserved ( const casacore::Matrix< casacore::Complex > &  value)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setProcessorId ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setRowFlag ( casacore::Bool  isFlagged)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setRowId ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setScanNumber ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setSigma ( casacore::Int  correlation,
casacore::Float  value 
)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setSigma ( const casacore::Vector< casacore::Float > &  value)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setSingleDishData ( casacore::Int  correlation,
casacore::Int  channel,
const casacore::Float value 
)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setSingleDishData ( const casacore::Matrix< casacore::Float > &  value)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setStateId ( casacore::Int  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setTime ( casacore::Double  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setTimeCentroid ( casacore::Double  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setUvw ( const casacore::Vector< casacore::Double > &  )
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setWeight ( casacore::Int  correlation,
casacore::Float  value 
)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual void casa::ms::MsRow::setWeight ( const casacore::Vector< casacore::Float > &  value)
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Float casa::ms::MsRow::sigma ( casacore::Int  correlation) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Vector<casacore::Float>& casa::ms::MsRow::sigma ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Float casa::ms::MsRow::sigmaSpectrum ( casacore::Int  correlation,
casacore::Int  channel 
) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Matrix<casacore::Float>& casa::ms::MsRow::sigmaSpectrum ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Float& casa::ms::MsRow::singleDishData ( casacore::Int  correlation,
casacore::Int  channel 
) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Matrix<casacore::Float> casa::ms::MsRow::singleDishData ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::spectralWindow ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Int casa::ms::MsRow::stateId ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Double casa::ms::MsRow::time ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Double casa::ms::MsRow::timeCentroid ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Vector<casacore::Double> casa::ms::MsRow::uvw ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

vi::VisBuffer2* casa::ms::MsRow::vb ( ) const
protected
virtual casacore::Float casa::ms::MsRow::weight ( casacore::Int  correlation) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Vector<casacore::Float>& casa::ms::MsRow::weight ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual casacore::Float casa::ms::MsRow::weightSpectrum ( casacore::Int  correlation,
casacore::Int  channel 
) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

virtual const casacore::Matrix<casacore::Float>& casa::ms::MsRow::weightSpectrum ( ) const
pure virtual

Implemented in casa::ms::Vbi2MsRow.

Member Data Documentation

const casacore::Bool casa::ms::MsRow::isWritable_p
private

Definition at line 241 of file MsRows.h.

casacore::Int casa::ms::MsRow::row_p
private

Definition at line 242 of file MsRows.h.

Referenced by changeRow().

vi::VisBuffer2* casa::ms::MsRow::vb_p
private

Definition at line 243 of file MsRows.h.


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