casacore
Public Member Functions | Private Member Functions | Private Attributes | List of all members
casacore::MSFieldIndex Class Reference

More...

#include <MSFieldIndex.h>

Public Member Functions

 MSFieldIndex (const MSField &field)
 Construct from an MS FIELD subtable. More...
 
virtual ~MSFieldIndex ()
 Null destructor. More...
 
Vector< IntmatchFieldNameOrCode (const String &name)
 Look up a single name in FIELD.NAME or FIELD.CODE. More...
 
Vector< IntmatchFieldName (const String &name)
 Look up FIELD_ID's for a given field name, or set of field names. More...
 
Vector< IntmatchFieldName (const Vector< String > &names)
 
Vector< IntmatchSubFieldName (const String &name)
 ADD for file name wildcard selection. More...
 
Vector< IntmatchFieldRegexOrPattern (const String &pattern, const Bool regex=False)
 Look up FIELD_ID's for a given pattern/regex for source name/code. More...
 
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. More...
 
Vector< IntmatchSourceId (const Vector< Int > &sourceIds)
 
void matchIdAgainstNames (Vector< Int > &ids)
 
Vector< IntvalidateIndices (const Vector< Int > &sourceIds)
 
Vector< IntmatchFieldCode (const String &code)
 Add for field code selection. More...
 
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. More...
 

Private Attributes

MSFieldColumns msFieldCols_p
 FIELD subtable column accessor. More...
 
Vector< IntfieldIds_p
 Vector cache of field id's. More...
 
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

◆ MSFieldIndex() [1/2]

casacore::MSFieldIndex::MSFieldIndex ( const MSField field)

Construct from an MS FIELD subtable.

◆ ~MSFieldIndex()

virtual casacore::MSFieldIndex::~MSFieldIndex ( )
inlinevirtual

Null destructor.

Definition at line 90 of file MSFieldIndex.h.

◆ MSFieldIndex() [2/2]

casacore::MSFieldIndex::MSFieldIndex ( )
private

Disallow null constructor.

Member Function Documentation

◆ maskFieldIDs()

Vector<Int> casacore::MSFieldIndex::maskFieldIDs ( const Vector< Int > &  ids)

◆ matchFieldCode()

Vector<Int> casacore::MSFieldIndex::matchFieldCode ( const String code)

Add for field code selection.

◆ matchFieldCodeRegexOrPattern()

Vector<Int> casacore::MSFieldIndex::matchFieldCodeRegexOrPattern ( const String pattern,
const Bool  regex = False 
)

◆ matchFieldIDGT()

Vector<Int> casacore::MSFieldIndex::matchFieldIDGT ( const Int  n)

◆ matchFieldIDGTAndLT()

Vector<Int> casacore::MSFieldIndex::matchFieldIDGTAndLT ( const Int  n0,
const int  n1 
)

◆ matchFieldIDLT()

Vector<Int> casacore::MSFieldIndex::matchFieldIDLT ( const Int  n)

◆ matchFieldName() [1/2]

Vector<Int> casacore::MSFieldIndex::matchFieldName ( const String name)

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

◆ matchFieldName() [2/2]

Vector<Int> casacore::MSFieldIndex::matchFieldName ( const Vector< String > &  names)

◆ matchFieldNameOrCode()

Vector<Int> casacore::MSFieldIndex::matchFieldNameOrCode ( const String name)

Look up a single name in FIELD.NAME or FIELD.CODE.

◆ matchFieldNameRegexOrPattern()

Vector<Int> casacore::MSFieldIndex::matchFieldNameRegexOrPattern ( const String pattern,
const Bool  regex = False 
)

◆ matchFieldRegexOrPattern()

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.

◆ matchIdAgainstNames()

void casacore::MSFieldIndex::matchIdAgainstNames ( Vector< Int > &  ids)

◆ matchSourceId() [1/2]

Vector<Int> casacore::MSFieldIndex::matchSourceId ( const Int sourceId)

Look up FIELD_ID's for a given source id.

◆ matchSourceId() [2/2]

Vector<Int> casacore::MSFieldIndex::matchSourceId ( const Vector< Int > &  sourceIds)

◆ matchSubFieldName()

Vector<Int> casacore::MSFieldIndex::matchSubFieldName ( const String name)

ADD for file name wildcard selection.

◆ validateIndices()

Vector<Int> casacore::MSFieldIndex::validateIndices ( const Vector< Int > &  sourceIds)

Member Data Documentation

◆ fieldIds_p

Vector<Int> casacore::MSFieldIndex::fieldIds_p
private

Vector cache of field id's.

Definition at line 130 of file MSFieldIndex.h.

◆ msFieldCols_p

MSFieldColumns casacore::MSFieldIndex::msFieldCols_p
private

FIELD subtable column accessor.

Definition at line 127 of file MSFieldIndex.h.

◆ nrows_p

Int casacore::MSFieldIndex::nrows_p
private

Definition at line 131 of file MSFieldIndex.h.


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