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

Abstract Derived Data Mapper class. More...

#include <DDMapper.h>

Inheritance diagram for casa::DDMapper:
casa::DDDummy casa::DDFunc casa::DDSumFunc casa::DDDiffFunc casa::DDFuncDiff casa::DDFuncSum

List of all members.

Public Member Functions

 DDMapper ()
virtual ~DDMapper ()
virtual Bool reset (const Vector< Int > &corr)=0
 Given a vector of correlation types, recomputes internal indices.
virtual Float map (const Cube< Complex > &vis, uInt ich, uInt irow) const =0
 Maps a slice of visibilities at (*,ich,irow) from the given viscube into a the derived value.
uShort corrMask () const
 Returns the "mask" of correlations which are used by this mapper.
Bool masked (uInt icorr) const
 Returns True if given correlations is masked.
Bool isValid ()
 Tells if mapper is valid.

Protected Attributes

Bool valid
uShort corrmask

Detailed Description

Abstract Derived Data Mapper class.

Intended use:

Internal

Synopsis

The DDMapper class defines an interface for mapping complex visibilities into Float derived values. DDMappers are used by several flagging agents.

Motivation

A lot of algorithms are expressed in terms of some real value derived from a set of visibilities (i.e., |XX|, |XX|-|YY|, etc.). The DDMapper hierarchy provides a uniform interface for deriving such values.

To Do

Definition at line 62 of file DDMapper.h.


Constructor & Destructor Documentation

Definition at line 69 of file DDMapper.h.

References casa::False, and valid.

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

Definition at line 70 of file DDMapper.h.


Member Function Documentation

uShort casa::DDMapper::corrMask ( ) const [inline]

Returns the "mask" of correlations which are used by this mapper.

by this mapper. Bit "i" is set if corr. "i" is used.

Definition at line 82 of file DDMapper.h.

References corrmask.

Tells if mapper is valid.

Definition at line 88 of file DDMapper.h.

References valid.

virtual Float casa::DDMapper::map ( const Cube< Complex > &  vis,
uInt  ich,
uInt  irow 
) const [pure virtual]

Maps a slice of visibilities at (*,ich,irow) from the given viscube into a the derived value.

Implemented in casa::DDDiffFunc, casa::DDFuncDiff, casa::DDFuncSum, casa::DDSumFunc, casa::DDFunc, and casa::DDDummy.

Referenced by casa::RFDataMapper::mapValue().

Bool casa::DDMapper::masked ( uInt  icorr) const [inline]

Returns True if given correlations is masked.

Definition at line 85 of file DDMapper.h.

References corrmask.

virtual Bool casa::DDMapper::reset ( const Vector< Int > &  corr) [pure virtual]

Given a vector of correlation types, recomputes internal indices.

returns True if all indices were found successfully.

Implemented in casa::DDSumFunc, casa::DDFunc, and casa::DDDummy.


Member Data Documentation

Definition at line 66 of file DDMapper.h.

Referenced by corrMask(), and masked().

Definition at line 65 of file DDMapper.h.

Referenced by DDMapper(), and isValid().


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