casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
casa::DDSumFunc Class Reference

DDSumFunc: maps two correlations A and B into func(A)+func(B) More...

#include <DDMapper.h>

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

Public Member Functions

 DDSumFunc (FuncSignature fsig, const casacore::String &corr1, const casacore::String &corr2)
virtual ~DDSumFunc ()
virtual casacore::Bool reset (const casacore::Vector< casacore::Int > &corr)
 Given a vector of correlation types, recomputes internal indices. More...
virtual casacore::Float map (const casacore::Cube< casacore::Complex > &vis, casacore::uInt ich, casacore::uInt irow) const
 Maps a slice of visibilities at (*,ich,irow) from the given viscube into a the derived value. More...
- Public Member Functions inherited from casa::DDFunc
 DDFunc (FuncSignature fsig, const casacore::String &corr)
 ~DDFunc ()
- Public Member Functions inherited from casa::DDMapper
 DDMapper ()
virtual ~DDMapper ()
casacore::uShort corrMask () const
 Returns the "mask" of correlations which are used by this mapper. More...
casacore::Bool masked (casacore::uInt icorr) const
 Returns true if given correlations is masked. More...
casacore::Bool isValid ()
 Tells if mapper is valid. More...

Protected Attributes

casacore::Int icorr2
casacore::Stokes::StokesTypes corrtype2
- Protected Attributes inherited from casa::DDFunc
casacore::Int icorr
casacore::Stokes::StokesTypes corrtype
FuncSignature func
- Protected Attributes inherited from casa::DDMapper
casacore::Bool valid
casacore::uShort corrmask

Additional Inherited Members

- Public Types inherited from casa::DDFunc
typedef casacore::Float(* FuncSignature )(const casacore::Complex &)
- Static Public Member Functions inherited from casa::DDFunc
static casacore::Float real (const casacore::Complex &)
 Define these functions, because using std::real/imag in getFunction matches multiple functions. More...
static casacore::Float imag (const casacore::Complex &)
static FuncSignature getFunction (const casacore::String &name)
 Static function to map a function name into a function pointer Functions currently recognized: ABS ARG NORM RE IM. More...
static DDMappergetMapper (casacore::String &desc, const casacore::Vector< casacore::String > &expr, casacore::Bool throw_excp=false)
 Static function to map string expression into a DDMapper Possible syntax is: <FUNC> <CC> SUM <FUNC> <CC> <CC> DIFF <FUNC> <CC> <CC> <FUNC> SUM <CC> <CC> <FUNC> DIFF <CC> <CC> More...

Detailed Description

DDSumFunc: maps two correlations A and B into func(A)+func(B)

Intended use:


Definition at line 154 of file DDMapper.h.

Constructor & Destructor Documentation

casa::DDSumFunc::DDSumFunc ( FuncSignature  fsig,
const casacore::String corr1,
const casacore::String corr2 
virtual casa::DDSumFunc::~DDSumFunc ( )

Definition at line 158 of file DDMapper.h.

Member Function Documentation

virtual casacore::Float casa::DDSumFunc::map ( const casacore::Cube< casacore::Complex > &  vis,
casacore::uInt  ich,
casacore::uInt  irow 
) const

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

Reimplemented from casa::DDFunc.

Reimplemented in casa::DDDiffFunc, casa::DDFuncDiff, and casa::DDFuncSum.

virtual casacore::Bool casa::DDSumFunc::reset ( const casacore::Vector< casacore::Int > &  corr)

Given a vector of correlation types, recomputes internal indices.

returns true if all indices were found successfully.

Reimplemented from casa::DDFunc.

Member Data Documentation

casacore::Stokes::StokesTypes casa::DDSumFunc::corrtype2

Definition at line 165 of file DDMapper.h.

casacore::Int casa::DDSumFunc::icorr2

Definition at line 164 of file DDMapper.h.

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