casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::MSStateIndex Class Reference

Class to handle lookup or indexing into a MS FIELD subtable. More...

#include <MSStateIndex.h>

List of all members.

Public Member Functions

 MSStateIndex (const MSState &state)
 Construct from an MS FIELD subtable.
virtual ~MSStateIndex ()
 Null destructor.
Vector< IntmatchStateIntent (const String &name)
Vector< IntmatchStateIntent (const Vector< String > &names)
Vector< IntmatchStateObsMode (const String &name)
 ADD for file name wildcard selection.
Vector< IntmatchStateObsMode (const Vector< String > &names)
Vector< IntmatchStateRegexOrPattern (const String &pattern, const Bool regex=False)
 Look up FIELD_ID's for a given pattern/regex for source name/code.
Vector< IntmatchStateObsModeRegexOrPattern (const String &pattern, const Bool regex=False)
Vector< IntmatchStateId (const Int &sourceId)
 Look up FIELD_ID's for a given source id.
Vector< IntmatchStateId (const Vector< Int > &sourceIds)
Vector< IntmaskStateIDs (const Vector< Int > &ids)
Vector< IntmatchStateIDLT (const Int n)
Vector< IntmatchStateIDGT (const Int n)
Vector< IntmatchStateIDGTAndLT (const Int n0, const int n1)

Private Member Functions

 MSStateIndex ()
 Disallow null constructor.
Int matchAnyRegex (const Vector< String > &strList, const Regex &regex, const Int pos=0)

Private Attributes

ROMSStateColumns msStateCols_p
 FIELD subtable column accessor.
Vector< IntstateIds_p
 Vector cache of field id's.
Int nrows_p

Detailed Description

Class to handle lookup or indexing into a MS FIELD subtable.

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

From "MeasurementSet", "FIELD subtable" and "index".

Synopsis

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.

Example

Motivation

Collect together all subtable indexing and lookup for the FIELD subtable, for encapsulation and efficiency.

Thrown Exceptions

Definition at line 83 of file MSStateIndex.h.


Constructor & Destructor Documentation

Construct from an MS FIELD subtable.

virtual casa::MSStateIndex::~MSStateIndex ( ) [inline, virtual]

Null destructor.

Definition at line 90 of file MSStateIndex.h.

Disallow null constructor.


Member Function Documentation

Int casa::MSStateIndex::matchAnyRegex ( const Vector< String > &  strList,
const Regex regex,
const Int  pos = 0 
) [private]

Look up FIELD_ID's for a given source id.

Vector<Int> casa::MSStateIndex::matchStateIDGTAndLT ( const Int  n0,
const int  n1 
)

ADD for file name wildcard selection.

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.


Member Data Documentation

FIELD subtable column accessor.

Definition at line 118 of file MSStateIndex.h.

Definition at line 122 of file MSStateIndex.h.

Vector cache of field id's.

Definition at line 121 of file MSStateIndex.h.


The documentation for this class was generated from the following file: