VLACDA.h

Classes

VLACDA -- (full description)

class VLACDA

Interface

Public Members
VLACDA()
VLACDA(ByteSource& record, uInt offset, uInt baselineSize, uInt nant, uInt nChan)
VLACDA(const VLACDA& other)
~VLACDA()
VLACDA& operator=(const VLACDA& other)
void attach(ByteSource& record, uInt offset, uInt baselineSize, uInt nant, uInt nChan)
Bool isValid() const
const VLABaselineRecord& autoCorr(uInt which) const
const VLABaselineRecord& crossCorr(uInt which) const
Private Members
void deleteACorr(uInt startIndex)
void deleteXCorr(uInt startIndex)

Description

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Member Description

VLACDA()

The default constructor creates a unusable object. Use the attach function to turn an object constructed this way into a usable 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. 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(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. 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.

Bool 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.

const VLABaselineRecord& 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& 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 deleteACorr(uInt startIndex)

void deleteXCorr(uInt startIndex)