casacore
|
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. More... | |
virtual | ~MSFieldIndex () |
Null destructor. More... | |
Vector< Int > | matchFieldNameOrCode (const String &name) |
Look up a single name in FIELD.NAME or FIELD.CODE. More... | |
Vector< Int > | matchFieldName (const String &name) |
Look up FIELD_ID's for a given field name, or set of field names. More... | |
Vector< Int > | matchFieldName (const Vector< String > &names) |
Vector< Int > | matchSubFieldName (const String &name) |
ADD for file name wildcard selection. More... | |
Vector< Int > | matchFieldRegexOrPattern (const String &pattern, const Bool regex=False) |
Look up FIELD_ID's for a given pattern/regex for source name/code. More... | |
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. More... | |
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. More... | |
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. More... | |
Private Attributes | |
ROMSFieldColumns | msFieldCols_p |
FIELD subtable column accessor. More... | |
Vector< Int > | fieldIds_p |
Vector cache of field id's. More... | |
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.
casacore::MSFieldIndex::MSFieldIndex | ( | const MSField & | field | ) |
Construct from an MS FIELD subtable.
|
inlinevirtual |
Null destructor.
Definition at line 90 of file MSFieldIndex.h.
References casacore::False, maskFieldIDs(), matchFieldCode(), matchFieldCodeRegexOrPattern(), matchFieldIDGT(), matchFieldIDGTAndLT(), matchFieldIDLT(), matchFieldName(), matchFieldNameOrCode(), matchFieldNameRegexOrPattern(), matchFieldRegexOrPattern(), matchSourceId(), matchSubFieldName(), MSFieldIndex(), casacore::pattern(), casacore::regex(), and validateIndices().
|
private |
Disallow null constructor.
Referenced by ~MSFieldIndex().
Referenced by ~MSFieldIndex().
Add for field code selection.
Referenced by ~MSFieldIndex().
Vector<Int> casacore::MSFieldIndex::matchFieldCodeRegexOrPattern | ( | const String & | pattern, |
const Bool | regex = False |
||
) |
Referenced by ~MSFieldIndex().
Referenced by ~MSFieldIndex().
Referenced by ~MSFieldIndex().
Referenced by ~MSFieldIndex().
Look up FIELD_ID's for a given field name, or set of field names.
Referenced by ~MSFieldIndex().
Look up a single name in FIELD.NAME or FIELD.CODE.
Referenced by ~MSFieldIndex().
Vector<Int> casacore::MSFieldIndex::matchFieldNameRegexOrPattern | ( | const String & | pattern, |
const Bool | regex = False |
||
) |
Referenced by ~MSFieldIndex().
Vector<Int> casacore::MSFieldIndex::matchFieldRegexOrPattern | ( | const String & | pattern, |
const Bool | regex = False |
||
) |
Look up FIELD_ID's for a given pattern/regex for source name/code.
Referenced by ~MSFieldIndex().
Look up FIELD_ID's for a given source id.
Referenced by ~MSFieldIndex().
ADD for file name wildcard selection.
Referenced by ~MSFieldIndex().
Referenced by ~MSFieldIndex().
Vector cache of field id's.
Definition at line 129 of file MSFieldIndex.h.
|
private |
FIELD subtable column accessor.
Definition at line 126 of file MSFieldIndex.h.
|
private |
Definition at line 130 of file MSFieldIndex.h.