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

More...

#include <MSStateIndex.h>

Public Member Functions

 MSStateIndex (const MSState &state)
 Construct from an MS FIELD subtable. More...
 
virtual ~MSStateIndex ()
 Null destructor. More...
 
Vector< IntmatchStateIntent (const String &name)
 
Vector< IntmatchStateIntent (const Vector< String > &names)
 
Vector< IntmatchStateObsMode (const String &name)
 ADD for file name wildcard selection. More...
 
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. More...
 
Vector< IntmatchStateObsModeRegexOrPattern (const String &pattern, const Bool regex=False)
 
Vector< IntmatchStateId (const Int &sourceId)
 Look up FIELD_ID's for a given source id. More...
 
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. More...
 
Int matchAnyRegex (const Vector< String > &strList, const Regex &regex, const Int pos=0)
 

Private Attributes

MSStateColumns msStateCols_p
 FIELD subtable column accessor. More...
 
Vector< IntstateIds_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 MSStateIndex.h.

Constructor & Destructor Documentation

◆ MSStateIndex() [1/2]

casacore::MSStateIndex::MSStateIndex ( const MSState state)

Construct from an MS FIELD subtable.

◆ ~MSStateIndex()

virtual casacore::MSStateIndex::~MSStateIndex ( )
inlinevirtual

Null destructor.

Definition at line 90 of file MSStateIndex.h.

◆ MSStateIndex() [2/2]

casacore::MSStateIndex::MSStateIndex ( )
private

Disallow null constructor.

Member Function Documentation

◆ maskStateIDs()

Vector<Int> casacore::MSStateIndex::maskStateIDs ( const Vector< Int > &  ids)

◆ matchAnyRegex()

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

◆ matchStateId() [1/2]

Vector<Int> casacore::MSStateIndex::matchStateId ( const Int sourceId)

Look up FIELD_ID's for a given source id.

◆ matchStateId() [2/2]

Vector<Int> casacore::MSStateIndex::matchStateId ( const Vector< Int > &  sourceIds)

◆ matchStateIDGT()

Vector<Int> casacore::MSStateIndex::matchStateIDGT ( const Int  n)

◆ matchStateIDGTAndLT()

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

◆ matchStateIDLT()

Vector<Int> casacore::MSStateIndex::matchStateIDLT ( const Int  n)

◆ matchStateIntent() [1/2]

Vector<Int> casacore::MSStateIndex::matchStateIntent ( const String name)

◆ matchStateIntent() [2/2]

Vector<Int> casacore::MSStateIndex::matchStateIntent ( const Vector< String > &  names)

◆ matchStateObsMode() [1/2]

Vector<Int> casacore::MSStateIndex::matchStateObsMode ( const String name)

ADD for file name wildcard selection.

◆ matchStateObsMode() [2/2]

Vector<Int> casacore::MSStateIndex::matchStateObsMode ( const Vector< String > &  names)

◆ matchStateObsModeRegexOrPattern()

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

◆ matchStateRegexOrPattern()

Vector<Int> casacore::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

◆ msStateCols_p

MSStateColumns casacore::MSStateIndex::msStateCols_p
private

FIELD subtable column accessor.

Definition at line 118 of file MSStateIndex.h.

◆ nrows_p

Int casacore::MSStateIndex::nrows_p
private

Definition at line 122 of file MSStateIndex.h.

◆ stateIds_p

Vector<Int> casacore::MSStateIndex::stateIds_p
private

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: