27 #ifndef FLAGGING_DDMAPPER_H
28 #define FLAGGING_DDMAPPER_H
105 {
puke();
return false; }
107 {
puke();
return 0.; }
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...
static FuncSignature getFunction(const casacore::String &name)
Static function to map a function name into a function pointer Functions currently recognized: ABS AR...
std::complex< Float > Complex
DDFuncDiff(FuncSignature fsig, const casacore::String &corr1, const casacore::String &corr2)
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...
casacore::uShort corrmask
DDFunc(FuncSignature fsig, const casacore::String &corr)
virtual casacore::Bool reset(const casacore::Vector< casacore::Int > &corr)
Given a vector of correlation types, recomputes internal indices.
Abstract Derived casacore::Data Mapper class.
DDDiffFunc(FuncSignature fsig, const casacore::String &corr1, const casacore::String &corr2)
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...
casacore::Bool isValid()
Tells if mapper is valid.
DDFuncSum: maps two correlations A and B into func(A+B)
DDDummy: dummy mapper, throws an excpetion if any methods are called.
casacore::Vector< casacore::String > splitExpression(const casacore::Vector< casacore::String > &expr0)
helper function to split an expression into elements
DDDiffFunc: maps two correlations A and B into func(A)-func(B)
casacore::Stokes::StokesTypes corrtype2
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
virtual casacore::Bool reset(const casacore::Vector< casacore::Int > &)
Given a vector of correlation types, recomputes internal indices.
static casacore::Float imag(const casacore::Complex &)
StokesTypes
The Stokes types are defined by this enum.
virtual casacore::Bool reset(const casacore::Vector< casacore::Int > &corr)=0
Given a vector of correlation types, recomputes internal indices.
casacore::Stokes::StokesTypes corrtype
DDFunc: maps correlation A into func(A)
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...
virtual casacore::Float map(const casacore::Cube< casacore::Complex > &, casacore::uInt, casacore::uInt) const
Maps a slice of visibilities at (*,ich,irow) from the given viscube into a the derived value...
DDFuncDiff: maps two correlations A and B into func(A-B)
casacore::Bool masked(casacore::uInt icorr) const
Returns true if given correlations is masked.
casacore::uShort corrMask() const
Returns the "mask" of correlations which are used by this mapper.
bool Bool
Define the standard types used by Casacore.
virtual void puke() const
virtual casacore::Float map(const casacore::Cube< casacore::Complex > &vis, casacore::uInt ich, casacore::uInt irow) const =0
Maps a slice of visibilities at (*,ich,irow) from the given viscube into a the derived value...
DDSumFunc: maps two correlations A and B into func(A)+func(B)
DDFuncSum(FuncSignature fsig, const casacore::String &corr1, const casacore::String &corr2)
casacore::Float(* FuncSignature)(const casacore::Complex &)
Base class for all Casacore library errors.
virtual casacore::Bool reset(const casacore::Vector< casacore::Int > &corr)
Given a vector of correlation types, recomputes internal indices.
DDSumFunc(FuncSignature fsig, const casacore::String &corr1, const casacore::String &corr2)
String: the storage and methods of handling collections of characters.
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...
static DDMapper * getMapper(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> <...
static casacore::Float real(const casacore::Complex &)
Define these functions, because using std::real/imag in getFunction matches multiple functions...