casa
$Rev:20696$
|
DDFunc: maps correlation A into func(A) More...
#include <DDMapper.h>
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 DDMapper * | getMapper (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 |
DDFunc: maps correlation A into func(A)
Internal
Definition at line 115 of file DDMapper.h.
typedef Float(* casa::DDFunc::FuncSignature)(const Complex &) |
Definition at line 118 of file DDMapper.h.
casa::DDFunc::DDFunc | ( | FuncSignature | fsig, |
const String & | corr | ||
) |
casa::DDFunc::~DDFunc | ( | ) | [inline] |
Definition at line 121 of file DDMapper.h.
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.
Stokes::StokesTypes casa::DDFunc::corrtype [protected] |
Definition at line 146 of file DDMapper.h.
FuncSignature casa::DDFunc::func [protected] |
Definition at line 147 of file DDMapper.h.
Int casa::DDFunc::icorr [protected] |
Definition at line 145 of file DDMapper.h.