#include <MSPolColumns.h>
Inheritance diagram for casa::ROMSPolarizationColumns:

Part of API
ROMSPolarizationColumns stands for Read-Only MeasurementSet Polarization Table columns.
This class provides read-only access to the columns in the MSPolarization Table. It does the declaration of all the Scalar and ArrayColumns with the correct types, so the application programmer doesn't have to worry about getting those right. There is an access function for every predefined column. Access to non-predefined columns will still have to be done with explicit declarations. See ROMSColumns for an example.
See MSColumns for the motivation.
Definition at line 75 of file MSPolColumns.h.
Public Member Functions | |
| ROMSPolarizationColumns (const MSPolarization &msPolarization) | |
| Create a columns object that accesses the data in the specified Table. | |
| ~ROMSPolarizationColumns () | |
| The destructor does nothing special. | |
| uInt | nrow () const |
| Convenience function that returns the number of rows in any of the columns. | |
| Int | match (const Vector< Stokes::StokesTypes > &polType, Int tryRow=-1) |
| returns the last row that contains the an entry in the CORR_TYPE column that matches, in length and value, the supplied corrType Vector. | |
| const ROArrayColumn< Int > & | corrProduct () const |
| Access to required columns. | |
| const ROArrayColumn< Int > & | corrType () const |
| const ROScalarColumn< Bool > & | flagRow () const |
| const ROScalarColumn< Int > & | numCorr () const |
Protected Member Functions | |
| ROMSPolarizationColumns () | |
| void | attach (const MSPolarization &msPolarization) |
Private Member Functions | |
| Bool | matchCorrType (uInt row, const Vector< Int > &polType) const |
| Bool | matchCorrProduct (uInt row, const Matrix< Int > &polProduct) const |
| ROMSPolarizationColumns (const ROMSPolarizationColumns &) | |
| ROMSPolarizationColumns & | operator= (const ROMSPolarizationColumns &) |
Private Attributes | |
| ROArrayColumn< Int > | corrProduct_p |
| ROArrayColumn< Int > | corrType_p |
| ROScalarColumn< Bool > | flagRow_p |
| ROScalarColumn< Int > | numCorr_p |
| casa::ROMSPolarizationColumns::ROMSPolarizationColumns | ( | const MSPolarization & | msPolarization | ) |
Create a columns object that accesses the data in the specified Table.
| casa::ROMSPolarizationColumns::~ROMSPolarizationColumns | ( | ) |
The destructor does nothing special.
| casa::ROMSPolarizationColumns::ROMSPolarizationColumns | ( | ) | [protected] |
| casa::ROMSPolarizationColumns::ROMSPolarizationColumns | ( | const ROMSPolarizationColumns & | ) | [private] |
| const ROArrayColumn<Int>& casa::ROMSPolarizationColumns::corrProduct | ( | ) | const [inline] |
Access to required columns.
Definition at line 86 of file MSPolColumns.h.
References corrProduct_p.
Referenced by casa::MSPolarizationColumns::corrProduct().
| const ROArrayColumn<Int>& casa::ROMSPolarizationColumns::corrType | ( | ) | const [inline] |
Definition at line 87 of file MSPolColumns.h.
References corrType_p.
Referenced by casa::MSPolarizationColumns::corrType().
| const ROScalarColumn<Bool>& casa::ROMSPolarizationColumns::flagRow | ( | ) | const [inline] |
Definition at line 88 of file MSPolColumns.h.
References flagRow_p.
Referenced by casa::MSPolarizationColumns::flagRow().
| const ROScalarColumn<Int>& casa::ROMSPolarizationColumns::numCorr | ( | ) | const [inline] |
Definition at line 89 of file MSPolColumns.h.
References numCorr_p.
Referenced by casa::MSPolarizationColumns::numCorr().
| uInt casa::ROMSPolarizationColumns::nrow | ( | ) | const [inline] |
Convenience function that returns the number of rows in any of the columns.
Definition at line 93 of file MSPolColumns.h.
References corrProduct_p.
| Int casa::ROMSPolarizationColumns::match | ( | const Vector< Stokes::StokesTypes > & | polType, | |
| Int | tryRow = -1 | |||
| ) |
returns the last row that contains the an entry in the CORR_TYPE column that matches, in length and value, the supplied corrType Vector.
Returns -1 if no match could be found. Flagged rows can never match. If tryRow is non-negative, then that row is tested to see if it matches before any others are tested. Setting tryRow to a positive value greater than the table length will throw an exception (AipsError), when compiled in debug mode.
| void casa::ROMSPolarizationColumns::attach | ( | const MSPolarization & | msPolarization | ) | [protected] |
| Bool casa::ROMSPolarizationColumns::matchCorrType | ( | uInt | row, | |
| const Vector< Int > & | polType | |||
| ) | const [private] |
| Bool casa::ROMSPolarizationColumns::matchCorrProduct | ( | uInt | row, | |
| const Matrix< Int > & | polProduct | |||
| ) | const [private] |
| ROMSPolarizationColumns& casa::ROMSPolarizationColumns::operator= | ( | const ROMSPolarizationColumns & | ) | [private] |
1.5.1