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

DDFunc: maps correlation A into func(A) More...

#include <DDMapper.h>

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

List of all members.

Public Types

typedef Float(* FuncSignature )(const Complex &)

Public Member Functions

 DDFunc (FuncSignature fsig, const String &corr)
 ~DDFunc ()
virtual Bool reset (const Vector< Int > &corr)
 Given a vector of correlation types, recomputes internal indices.
virtual Float map (const Cube< Complex > &vis, uInt ich, uInt irow) const
 Maps a slice of visibilities at (*,ich,irow) from the given viscube into a the derived value.

Static Public Member Functions

static Float real (const Complex &)
 Define these functions, because using std::real/imag in getFunction matches multiple functions.
static Float imag (const Complex &)
static FuncSignature getFunction (const String &name)
 Static function to map a function name into a function pointer Functions currently recognized: ABS ARG NORM RE IM.
static DDMappergetMapper (String &desc, const Vector< String > &expr, 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>

Protected Attributes

Int icorr
Stokes::StokesTypes corrtype
FuncSignature func

Detailed Description

DDFunc: maps correlation A into func(A)

Intended use:

Internal

Definition at line 115 of file DDMapper.h.


Member Typedef Documentation

typedef Float(* casa::DDFunc::FuncSignature)(const Complex &)

Definition at line 118 of file DDMapper.h.


Constructor & Destructor Documentation

casa::DDFunc::DDFunc ( FuncSignature  fsig,
const String corr 
)
casa::DDFunc::~DDFunc ( ) [inline]

Definition at line 121 of file DDMapper.h.


Member Function Documentation

static FuncSignature casa::DDFunc::getFunction ( const String name) [static]

Static function to map a function name into a function pointer Functions currently recognized: ABS ARG NORM RE IM.

static DDMapper* casa::DDFunc::getMapper ( String desc,
const Vector< String > &  expr,
Bool  throw_excp = False 
) [static]

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>

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

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

Implements casa::DDMapper.

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

static Float casa::DDFunc::real ( const Complex &  ) [static]

Define these functions, because using std::real/imag in getFunction matches multiple functions.

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

Given a vector of correlation types, recomputes internal indices.

returns True if all indices were found successfully.

Implements casa::DDMapper.

Reimplemented in casa::DDSumFunc.


Member Data Documentation

Definition at line 146 of file DDMapper.h.

Definition at line 147 of file DDMapper.h.

Int casa::DDFunc::icorr [protected]

Definition at line 145 of file DDMapper.h.


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