casa
$Rev:20696$
|
Class to handle lookup or indexing into a MS FIELD subtable. More...
#include <MSFieldIndex.h>
Public Member Functions | |
MSFieldIndex (const MSField &field) | |
Construct from an MS FIELD subtable. | |
virtual | ~MSFieldIndex () |
Null destructor. | |
Vector< Int > | matchFieldNameOrCode (const String &name) |
Look up a single name in FIELD.NAME or FIELD.CODE. | |
Vector< Int > | matchFieldName (const String &name) |
Look up FIELD_ID's for a given field name, or set of field names. | |
Vector< Int > | matchFieldName (const Vector< String > &names) |
Vector< Int > | matchSubFieldName (const String &name) |
ADD for file name wildcard selection. | |
Vector< Int > | matchFieldRegexOrPattern (const String &pattern, const Bool regex=False) |
Look up FIELD_ID's for a given pattern/regex for source name/code. | |
Vector< Int > | matchFieldNameRegexOrPattern (const String &pattern, const Bool regex=False) |
Vector< Int > | matchFieldCodeRegexOrPattern (const String &pattern, const Bool regex=False) |
Vector< Int > | matchSourceId (const Int &sourceId) |
Look up FIELD_ID's for a given source id. | |
Vector< Int > | matchSourceId (const Vector< Int > &sourceIds) |
Vector< Int > | validateIndices (const Vector< Int > &sourceIds) |
Vector< Int > | matchFieldCode (const String &code) |
Add for field code selection. | |
Vector< Int > | maskFieldIDs (const Vector< Int > &ids) |
Vector< Int > | matchFieldIDLT (const Int n) |
Vector< Int > | matchFieldIDGT (const Int n) |
Vector< Int > | matchFieldIDGTAndLT (const Int n0, const int n1) |
Private Member Functions | |
MSFieldIndex () | |
Disallow null constructor. | |
Private Attributes | |
ROMSFieldColumns | msFieldCols_p |
FIELD subtable column accessor. | |
Vector< Int > | fieldIds_p |
Vector cache of field id's. | |
Int | nrows_p |
Class to handle lookup or indexing into a MS FIELD subtable.
Public interface
From "MeasurementSet", "FIELD subtable" and "index".
This class provides lookup and indexing into an MS FIELD subtable. These services include returning rows numbers (which for the FIELD subtable are FIELD_ID's) associated with specific data in the subtable.
Collect together all subtable indexing and lookup for the FIELD subtable, for encapsulation and efficiency.
Definition at line 83 of file MSFieldIndex.h.
casa::MSFieldIndex::MSFieldIndex | ( | const MSField & | field | ) |
Construct from an MS FIELD subtable.
virtual casa::MSFieldIndex::~MSFieldIndex | ( | ) | [inline, virtual] |
Null destructor.
Definition at line 90 of file MSFieldIndex.h.
casa::MSFieldIndex::MSFieldIndex | ( | ) | [private] |
Disallow null constructor.
Vector<Int> casa::MSFieldIndex::maskFieldIDs | ( | const Vector< Int > & | ids | ) |
Vector<Int> casa::MSFieldIndex::matchFieldCode | ( | const String & | code | ) |
Add for field code selection.
Vector<Int> casa::MSFieldIndex::matchFieldCodeRegexOrPattern | ( | const String & | pattern, |
const Bool | regex = False |
||
) |
Vector<Int> casa::MSFieldIndex::matchFieldIDGT | ( | const Int | n | ) |
Vector<Int> casa::MSFieldIndex::matchFieldIDGTAndLT | ( | const Int | n0, |
const int | n1 | ||
) |
Vector<Int> casa::MSFieldIndex::matchFieldIDLT | ( | const Int | n | ) |
Vector<Int> casa::MSFieldIndex::matchFieldName | ( | const String & | name | ) |
Look up FIELD_ID's for a given field name, or set of field names.
Vector<Int> casa::MSFieldIndex::matchFieldName | ( | const Vector< String > & | names | ) |
Vector<Int> casa::MSFieldIndex::matchFieldNameOrCode | ( | const String & | name | ) |
Look up a single name in FIELD.NAME or FIELD.CODE.
Vector<Int> casa::MSFieldIndex::matchFieldNameRegexOrPattern | ( | const String & | pattern, |
const Bool | regex = False |
||
) |
Vector<Int> casa::MSFieldIndex::matchFieldRegexOrPattern | ( | const String & | pattern, |
const Bool | regex = False |
||
) |
Look up FIELD_ID's for a given pattern/regex for source name/code.
Vector<Int> casa::MSFieldIndex::matchSourceId | ( | const Int & | sourceId | ) |
Look up FIELD_ID's for a given source id.
Vector<Int> casa::MSFieldIndex::matchSourceId | ( | const Vector< Int > & | sourceIds | ) |
Vector<Int> casa::MSFieldIndex::matchSubFieldName | ( | const String & | name | ) |
ADD for file name wildcard selection.
Vector<Int> casa::MSFieldIndex::validateIndices | ( | const Vector< Int > & | sourceIds | ) |
Vector<Int> casa::MSFieldIndex::fieldIds_p [private] |
Vector cache of field id's.
Definition at line 129 of file MSFieldIndex.h.
FIELD subtable column accessor.
Definition at line 126 of file MSFieldIndex.h.
Int casa::MSFieldIndex::nrows_p [private] |
Definition at line 130 of file MSFieldIndex.h.