casa
5.7.0-16
|
#include <VLACDA.h>
Public Member Functions | |
VLACDA () | |
The default constructor creates a unusable object. More... | |
VLACDA (casacore::ByteSource &record, casacore::uInt offset, casacore::uInt baselineSize, casacore::uInt nant, casacore::uInt nChan) | |
Initialise this CDA from the given BytesSource (which must contain a VLA logical record), and must be readable & seekable. More... | |
VLACDA (const VLACDA &other) | |
The copy constructor uses copy semantics. More... | |
~VLACDA () | |
The destructor is trivial. More... | |
VLACDA & | operator= (const VLACDA &other) |
The assignment constructor uses copy semantics. More... | |
void | attach (casacore::ByteSource &record, casacore::uInt offset, casacore::uInt baselineSize, casacore::uInt nant, casacore::uInt nChan) |
Initialise this CDA from the given BytesSource (which must contain a VLA logical record), and must be readable & seekable. More... | |
casacore::Bool | isValid () const |
Return true if the CDA contains valid data. More... | |
const VLABaselineRecord & | autoCorr (casacore::uInt which) const |
return the specified baseline record corresponding to the specified auto-correlation. More... | |
const VLABaselineRecord & | crossCorr (casacore::uInt which) const |
return the specified baseline record corresponding to the specified cross-correlation. More... | |
Private Member Functions | |
void | deleteACorr (casacore::uInt startIndex) |
void | deleteXCorr (casacore::uInt startIndex) |
Private Attributes | |
casacore::ByteSource | itsRecord |
casacore::uInt | itsOffset |
the offset to the start of this CDA in the record. More... | |
casacore::uInt | itsBaselineSize |
A cached value of the size, in bytes, of a baseline record. More... | |
casacore::uInt | itsNant |
A cached value of the number of antennas that this CDU has data for. More... | |
casacore::uInt | itsNchan |
A cached value of the number of channels that this CDU has data for. More... | |
casacore::PtrBlock < VLABaselineRecord * > | itsACorr |
casacore::PtrBlock < VLABaselineRecord * > | itsXCorr |
Public interface
VLACDA::VLACDA | ( | ) |
The default constructor creates a unusable object.
Use the attach function to turn an object constructed this way into a usable object.
VLACDA::VLACDA | ( | casacore::ByteSource & | record, |
casacore::uInt | offset, | ||
casacore::uInt | baselineSize, | ||
casacore::uInt | nant, | ||
casacore::uInt | nChan | ||
) |
Initialise this CDA from the given BytesSource (which must contain a VLA logical record), and must be readable & seekable.
The offset specifies where the CDA starts in the logical record. The number of antennas and channels in this CDA, as well as the size of a baseline record, must also be specified.
VLACDA::VLACDA | ( | const VLACDA & | other | ) |
The copy constructor uses copy semantics.
VLACDA::~VLACDA | ( | ) |
The destructor is trivial.
void VLACDA::attach | ( | casacore::ByteSource & | record, |
casacore::uInt | offset, | ||
casacore::uInt | baselineSize, | ||
casacore::uInt | nant, | ||
casacore::uInt | nChan | ||
) |
Initialise this CDA from the given BytesSource (which must contain a VLA logical record), and must be readable & seekable.
The offset specifies where the CDA starts in the logical record. The number of antennas and channels in this CDA, as well as the size of a baseline record, must also be specified.
const VLABaselineRecord& VLACDA::autoCorr | ( | casacore::uInt | which | ) | const |
return the specified baseline record corresponding to the specified auto-correlation.
The index must be less than the number of antennas in this subarray otherwise an exception is thrown.
const VLABaselineRecord& VLACDA::crossCorr | ( | casacore::uInt | which | ) | const |
return the specified baseline record corresponding to the specified cross-correlation.
The index must be less than NANT*(NANT-1)/2 otherwise an exception is thrown.
|
private |
|
private |
casacore::Bool VLACDA::isValid | ( | ) | const |
Return true if the CDA contains valid data.
This, and the copy functions, will not throw an exception if the CDA does not contain data.
|
mutableprivate |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
mutableprivate |