#include <MSSourceIndex.h>
Public Member Functions | |
MSSourceIndex () | |
no index attached, use the attach function or assignment operator to change that | |
MSSourceIndex (const MSSource &source) | |
construct one using the indicated SOURCE table | |
MSSourceIndex (const MSSourceIndex &other) | |
construct one from another | |
virtual | ~MSSourceIndex () |
MSSourceIndex & | operator= (const MSSourceIndex &other) |
assignment operator, refernce semantics | |
void | attach (const MSSource &source) |
Int & | sourceId () |
access to the source ID key, throws an exception if isNull() is False | |
Int & | spectralWindowId () |
access to the spectral window ID key, throws an exception if isNull() is False | |
Vector< Int > | matchSourceName (const String &name) |
Match a source name or list of source names to a set of SOURCE_ID's. | |
Vector< Int > | matchSourceName (const Vector< String > &names) |
Vector< Int > | matchSourceCode (const String &code) |
add for source code selection | |
Vector< uInt > | getRowNumbersOfSourceID (const Int sid) |
Return rows matching a SourceID. | |
Static Protected Member Functions | |
static Int | compare (const Block< void * > &fieldPtrs, const Block< void * > &dataPtrs, const Block< Int > &dataTypes, Int index) |
the specialized compare function to pass to the ColumnsIndex object. | |
Private Member Functions | |
void | attachIds () |
Private Attributes | |
ROMSSourceColumns * | msSourceCols_p |
Pointer to local ROMSSourceColumns object. | |
RecordFieldPtr< Int > | sourceId_p |
RecordFieldPtr< Int > | spwId_p |
Public interface
Definition at line 74 of file MSSourceIndex.h.
casacore::MSSourceIndex::MSSourceIndex | ( | ) |
no index attached, use the attach function or assignment operator to change that
casacore::MSSourceIndex::MSSourceIndex | ( | const MSSource & | source | ) |
construct one using the indicated SOURCE table
casacore::MSSourceIndex::MSSourceIndex | ( | const MSSourceIndex & | other | ) |
construct one from another
virtual casacore::MSSourceIndex::~MSSourceIndex | ( | ) | [virtual] |
void casacore::MSSourceIndex::attach | ( | const MSSource & | source | ) |
void casacore::MSSourceIndex::attachIds | ( | ) | [private] |
static Int casacore::MSSourceIndex::compare | ( | const Block< void * > & | fieldPtrs, | |
const Block< void * > & | dataPtrs, | |||
const Block< Int > & | dataTypes, | |||
Int | index | |||
) | [static, protected] |
the specialized compare function to pass to the ColumnsIndex object.
This supports -1 values for the SPECTRAL_WINDOW_ID
Return rows matching a SourceID.
add for source code selection
Match a source name or list of source names to a set of SOURCE_ID's.
MSSourceIndex& casacore::MSSourceIndex::operator= | ( | const MSSourceIndex & | other | ) |
assignment operator, refernce semantics
Reimplemented from casacore::MSTableIndex.
Int& casacore::MSSourceIndex::sourceId | ( | ) | [inline] |
access to the source ID key, throws an exception if isNull() is False
Definition at line 93 of file MSSourceIndex.h.
References sourceId_p.
Int& casacore::MSSourceIndex::spectralWindowId | ( | ) | [inline] |
access to the spectral window ID key, throws an exception if isNull() is False
Definition at line 97 of file MSSourceIndex.h.
References spwId_p.
Pointer to local ROMSSourceColumns object.
Definition at line 121 of file MSSourceIndex.h.
RecordFieldPtr<Int> casacore::MSSourceIndex::sourceId_p [private] |
Definition at line 123 of file MSSourceIndex.h.
Referenced by sourceId().
RecordFieldPtr<Int> casacore::MSSourceIndex::spwId_p [private] |
Definition at line 123 of file MSSourceIndex.h.
Referenced by spectralWindowId().