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

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

#include <MSFieldIndex.h>

List of all members.

Public Member Functions

 MSFieldIndex (const MSField &field)
 Construct from an MS FIELD subtable.
virtual ~MSFieldIndex ()
 Null destructor.
Vector< IntmatchFieldNameOrCode (const String &name)
 Look up a single name in FIELD.NAME or FIELD.CODE.
Vector< IntmatchFieldName (const String &name)
 Look up FIELD_ID's for a given field name, or set of field names.
Vector< IntmatchFieldName (const Vector< String > &names)
Vector< IntmatchSubFieldName (const String &name)
 ADD for file name wildcard selection.
Vector< IntmatchFieldRegexOrPattern (const String &pattern, const Bool regex=False)
 Look up FIELD_ID's for a given pattern/regex for source name/code.
Vector< IntmatchFieldNameRegexOrPattern (const String &pattern, const Bool regex=False)
Vector< IntmatchFieldCodeRegexOrPattern (const String &pattern, const Bool regex=False)
Vector< IntmatchSourceId (const Int &sourceId)
 Look up FIELD_ID's for a given source id.
Vector< IntmatchSourceId (const Vector< Int > &sourceIds)
Vector< IntvalidateIndices (const Vector< Int > &sourceIds)
Vector< IntmatchFieldCode (const String &code)
 Add for field code selection.
Vector< IntmaskFieldIDs (const Vector< Int > &ids)
Vector< IntmatchFieldIDLT (const Int n)
Vector< IntmatchFieldIDGT (const Int n)
Vector< IntmatchFieldIDGTAndLT (const Int n0, const int n1)

Private Member Functions

 MSFieldIndex ()
 Disallow null constructor.

Private Attributes

ROMSFieldColumns msFieldCols_p
 FIELD subtable column accessor.
Vector< IntfieldIds_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 MSFieldIndex.h.


Constructor & Destructor Documentation

Construct from an MS FIELD subtable.

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

Null destructor.

Definition at line 90 of file MSFieldIndex.h.

Disallow null constructor.


Member Function Documentation

Add for field code selection.

Vector<Int> casa::MSFieldIndex::matchFieldCodeRegexOrPattern ( const String pattern,
const Bool  regex = False 
)
Vector<Int> casa::MSFieldIndex::matchFieldIDGTAndLT ( const Int  n0,
const int  n1 
)

Look up FIELD_ID's for a given field name, or set of field names.

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.

Look up FIELD_ID's for a given source id.

ADD for file name wildcard selection.


Member Data Documentation

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.

Definition at line 130 of file MSFieldIndex.h.


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