casa
$Rev:20696$
|
#include <VLACDA.h>
Public Member Functions | |
VLACDA () | |
The default constructor creates a unusable object. | |
VLACDA (ByteSource &record, uInt offset, uInt baselineSize, uInt nant, uInt nChan) | |
Initialise this CDA from the given BytesSource (which must contain a VLA logical record), and must be readable & seekable. | |
VLACDA (const VLACDA &other) | |
The copy constructor uses copy semantics. | |
~VLACDA () | |
The destructor is trivial. | |
VLACDA & | operator= (const VLACDA &other) |
The assignment constructor uses copy semantics. | |
void | attach (ByteSource &record, uInt offset, uInt baselineSize, uInt nant, uInt nChan) |
Initialise this CDA from the given BytesSource (which must contain a VLA logical record), and must be readable & seekable. | |
Bool | isValid () const |
Return True if the CDA contains valid data. | |
const VLABaselineRecord & | autoCorr (uInt which) const |
return the specified baseline record corresponding to the specified auto-correlation. | |
const VLABaselineRecord & | crossCorr (uInt which) const |
return the specified baseline record corresponding to the specified cross-correlation. | |
Private Member Functions | |
void | deleteACorr (uInt startIndex) |
void | deleteXCorr (uInt startIndex) |
Private Attributes | |
ByteSource | itsRecord |
uInt | itsOffset |
the offset to the start of this CDA in the record. | |
uInt | itsBaselineSize |
A cached value of the size, in bytes, of a baseline record. | |
uInt | itsNant |
A cached value of the number of antennas that this CDU has data for. | |
uInt | itsNchan |
A cached value of the number of channels that this CDU has data for. | |
PtrBlock< VLABaselineRecord * > | itsACorr |
PtrBlock< VLABaselineRecord * > | itsXCorr |
Public interface
<h3>Review Status</h3><dl><dt>Date Reviewed:<dd>yyyy/mm/dd</dl>
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 | ( | ByteSource & | record, |
uInt | offset, | ||
uInt | baselineSize, | ||
uInt | nant, | ||
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 | ( | ByteSource & | record, |
uInt | offset, | ||
uInt | baselineSize, | ||
uInt | nant, | ||
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 | ( | 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 | ( | 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.
void VLACDA::deleteACorr | ( | uInt | startIndex | ) | [private] |
void VLACDA::deleteXCorr | ( | uInt | startIndex | ) | [private] |
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.
PtrBlock<VLABaselineRecord*> VLACDA::itsACorr [mutable, private] |
uInt VLACDA::itsBaselineSize [private] |
uInt VLACDA::itsNant [private] |
uInt VLACDA::itsNchan [private] |
uInt VLACDA::itsOffset [private] |
ByteSource VLACDA::itsRecord [mutable, private] |
PtrBlock<VLABaselineRecord*> VLACDA::itsXCorr [mutable, private] |