casa
$Rev:20696$
|
Class to handle lookup or indexing into a MS FIELD subtable. More...
#include <MSStateIndex.h>
Public Member Functions | |
MSStateIndex (const MSState &state) | |
Construct from an MS FIELD subtable. | |
virtual | ~MSStateIndex () |
Null destructor. | |
Vector< Int > | matchStateIntent (const String &name) |
Vector< Int > | matchStateIntent (const Vector< String > &names) |
Vector< Int > | matchStateObsMode (const String &name) |
ADD for file name wildcard selection. | |
Vector< Int > | matchStateObsMode (const Vector< String > &names) |
Vector< Int > | matchStateRegexOrPattern (const String &pattern, const Bool regex=False) |
Look up FIELD_ID's for a given pattern/regex for source name/code. | |
Vector< Int > | matchStateObsModeRegexOrPattern (const String &pattern, const Bool regex=False) |
Vector< Int > | matchStateId (const Int &sourceId) |
Look up FIELD_ID's for a given source id. | |
Vector< Int > | matchStateId (const Vector< Int > &sourceIds) |
Vector< Int > | maskStateIDs (const Vector< Int > &ids) |
Vector< Int > | matchStateIDLT (const Int n) |
Vector< Int > | matchStateIDGT (const Int n) |
Vector< Int > | matchStateIDGTAndLT (const Int n0, const int n1) |
Private Member Functions | |
MSStateIndex () | |
Disallow null constructor. | |
Int | matchAnyRegex (const Vector< String > &strList, const Regex ®ex, const Int pos=0) |
Private Attributes | |
ROMSStateColumns | msStateCols_p |
FIELD subtable column accessor. | |
Vector< Int > | stateIds_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 MSStateIndex.h.
casa::MSStateIndex::MSStateIndex | ( | const MSState & | state | ) |
Construct from an MS FIELD subtable.
virtual casa::MSStateIndex::~MSStateIndex | ( | ) | [inline, virtual] |
Null destructor.
Definition at line 90 of file MSStateIndex.h.
casa::MSStateIndex::MSStateIndex | ( | ) | [private] |
Disallow null constructor.
Vector<Int> casa::MSStateIndex::maskStateIDs | ( | const Vector< Int > & | ids | ) |
Int casa::MSStateIndex::matchAnyRegex | ( | const Vector< String > & | strList, |
const Regex & | regex, | ||
const Int | pos = 0 |
||
) | [private] |
Vector<Int> casa::MSStateIndex::matchStateId | ( | const Int & | sourceId | ) |
Look up FIELD_ID's for a given source id.
Vector<Int> casa::MSStateIndex::matchStateId | ( | const Vector< Int > & | sourceIds | ) |
Vector<Int> casa::MSStateIndex::matchStateIDGT | ( | const Int | n | ) |
Vector<Int> casa::MSStateIndex::matchStateIDGTAndLT | ( | const Int | n0, |
const int | n1 | ||
) |
Vector<Int> casa::MSStateIndex::matchStateIDLT | ( | const Int | n | ) |
Vector<Int> casa::MSStateIndex::matchStateIntent | ( | const String & | name | ) |
Vector<Int> casa::MSStateIndex::matchStateIntent | ( | const Vector< String > & | names | ) |
Vector<Int> casa::MSStateIndex::matchStateObsMode | ( | const String & | name | ) |
ADD for file name wildcard selection.
Vector<Int> casa::MSStateIndex::matchStateObsMode | ( | const Vector< String > & | names | ) |
Vector<Int> casa::MSStateIndex::matchStateObsModeRegexOrPattern | ( | const String & | pattern, |
const Bool | regex = False |
||
) |
Vector<Int> casa::MSStateIndex::matchStateRegexOrPattern | ( | const String & | pattern, |
const Bool | regex = False |
||
) |
Look up FIELD_ID's for a given pattern/regex for source name/code.
FIELD subtable column accessor.
Definition at line 118 of file MSStateIndex.h.
Int casa::MSStateIndex::nrows_p [private] |
Definition at line 122 of file MSStateIndex.h.
Vector<Int> casa::MSStateIndex::stateIds_p [private] |
Vector cache of field id's.
Definition at line 121 of file MSStateIndex.h.