casacore::MSSourceIndex Class Reference

#include <MSSourceIndex.h>

Inheritance diagram for casacore::MSSourceIndex:
casacore::MSTableIndex

List of all members.

Public Member Functions

 MSSourceIndex ()
 no index attached, use the attach function or assignment operator to change that
 MSSourceIndex (const MSSource &source)
 construct one using the indicated SOURCE table
 MSSourceIndex (const MSSourceIndex &other)
 construct one from another
virtual ~MSSourceIndex ()
MSSourceIndexoperator= (const MSSourceIndex &other)
 assignment operator, refernce semantics
void attach (const MSSource &source)
IntsourceId ()
 access to the source ID key, throws an exception if isNull() is False
IntspectralWindowId ()
 access to the spectral window ID key, throws an exception if isNull() is False
Vector< IntmatchSourceName (const String &name)
 Match a source name or list of source names to a set of SOURCE_ID's.
Vector< IntmatchSourceName (const Vector< String > &names)
Vector< IntmatchSourceCode (const String &code)
 add for source code selection
Vector< uIntgetRowNumbersOfSourceID (const Int sid)
 Return rows matching a SourceID.

Static Protected Member Functions

static Int compare (const Block< void * > &fieldPtrs, const Block< void * > &dataPtrs, const Block< Int > &dataTypes, Int index)
 the specialized compare function to pass to the ColumnsIndex object.

Private Member Functions

void attachIds ()

Private Attributes

ROMSSourceColumnsmsSourceCols_p
 Pointer to local ROMSSourceColumns object.
RecordFieldPtr< IntsourceId_p
RecordFieldPtr< IntspwId_p

Detailed Description

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Thrown Exceptions

Definition at line 74 of file MSSourceIndex.h.


Constructor & Destructor Documentation

casacore::MSSourceIndex::MSSourceIndex (  ) 

no index attached, use the attach function or assignment operator to change that

casacore::MSSourceIndex::MSSourceIndex ( const MSSource source  ) 

construct one using the indicated SOURCE table

casacore::MSSourceIndex::MSSourceIndex ( const MSSourceIndex other  ) 

construct one from another

virtual casacore::MSSourceIndex::~MSSourceIndex (  )  [virtual]

Member Function Documentation

void casacore::MSSourceIndex::attach ( const MSSource source  ) 
void casacore::MSSourceIndex::attachIds (  )  [private]
static Int casacore::MSSourceIndex::compare ( const Block< void * > &  fieldPtrs,
const Block< void * > &  dataPtrs,
const Block< Int > &  dataTypes,
Int  index 
) [static, protected]

the specialized compare function to pass to the ColumnsIndex object.

This supports -1 values for the SPECTRAL_WINDOW_ID

Vector<uInt> casacore::MSSourceIndex::getRowNumbersOfSourceID ( const Int  sid  ) 

Return rows matching a SourceID.

Vector<Int> casacore::MSSourceIndex::matchSourceCode ( const String code  ) 

add for source code selection

Vector<Int> casacore::MSSourceIndex::matchSourceName ( const Vector< String > &  names  ) 
Vector<Int> casacore::MSSourceIndex::matchSourceName ( const String name  ) 

Match a source name or list of source names to a set of SOURCE_ID's.

MSSourceIndex& casacore::MSSourceIndex::operator= ( const MSSourceIndex other  ) 

assignment operator, refernce semantics

Reimplemented from casacore::MSTableIndex.

Int& casacore::MSSourceIndex::sourceId (  )  [inline]

access to the source ID key, throws an exception if isNull() is False

Definition at line 93 of file MSSourceIndex.h.

References sourceId_p.

Int& casacore::MSSourceIndex::spectralWindowId (  )  [inline]

access to the spectral window ID key, throws an exception if isNull() is False

Definition at line 97 of file MSSourceIndex.h.

References spwId_p.


Member Data Documentation

Pointer to local ROMSSourceColumns object.

Definition at line 121 of file MSSourceIndex.h.

Definition at line 123 of file MSSourceIndex.h.

Referenced by sourceId().

Definition at line 123 of file MSSourceIndex.h.

Referenced by spectralWindowId().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1