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

VlatFunctor is an abstract class for functor objects used to encapsulate the various filling methods (e.g., fillVis, fillAnt1, etc.). More...

#include <VLAT2.h>

Inheritance diagram for vi::VlatFunctor:
vi::VlatFunctor0< Ret, VbType > vi::VlatFunctor1< Ret, Arg >

Public Member Functions

 VlatFunctor (const casacore::String &name, casacore::Int precedence=0)
 VlatFunctor (casacore::Int precedence=0)
virtual ~VlatFunctor ()
virtual void operator() (VisBuffer *)
virtual VlatFunctorclone ()
VisBufferComponents::EnumType getId () const
void setId (VisBufferComponents::EnumType id)
void setPrecedence (casacore::Int precedence)

Static Public Member Functions

static casacore::Bool byDecreasingPrecedence (const VlatFunctor *a, const VlatFunctor *b)

Private Attributes

VisBufferComponents::EnumType id_p
casacore::String name_p
casacore::Int precedence_p

Detailed Description

VlatFunctor is an abstract class for functor objects used to encapsulate the various filling methods (e.g., fillVis, fillAnt1, etc.).

This allows the various functions to be put into a list of fill methods that are used by the VLAT everytime the VLAT's visibliity iterator is advanced. There are two subclasses VlatFunctor0 and VlatFunctor1 which support nullar and unary fill methods. The fillers for visibility-related data (e.g., fillVis and fillVisCube) take a parameter to indicate which sort of visibility (e.g., actual, model, corrected) is to be filled.

Definition at line 71 of file VLAT2.h.

Constructor & Destructor Documentation

vi::VlatFunctor::VlatFunctor ( const casacore::String name,
casacore::Int  precedence = 0 

Definition at line 76 of file VLAT2.h.

Referenced by clone().

vi::VlatFunctor::VlatFunctor ( casacore::Int  precedence = 0)

Definition at line 79 of file VLAT2.h.

virtual vi::VlatFunctor::~VlatFunctor ( )

Definition at line 82 of file VLAT2.h.

Member Function Documentation

static casacore::Bool vi::VlatFunctor::byDecreasingPrecedence ( const VlatFunctor a,
const VlatFunctor b 

Definition at line 91 of file VLAT2.h.

References id_p, and precedence_p.

virtual VlatFunctor* vi::VlatFunctor::clone ( )

Reimplemented in vi::VlatFunctor1< Ret, Arg >, and vi::VlatFunctor0< Ret, VbType >.

Definition at line 85 of file VLAT2.h.

References VlatFunctor().

VisBufferComponents::EnumType vi::VlatFunctor::getId ( ) const

Definition at line 87 of file VLAT2.h.

References id_p.

virtual void vi::VlatFunctor::operator() ( VisBuffer *  )
void vi::VlatFunctor::setId ( VisBufferComponents::EnumType  id)

Definition at line 88 of file VLAT2.h.

References id_p.

Referenced by vi::VLAT::FillerDictionary::add().

void vi::VlatFunctor::setPrecedence ( casacore::Int  precedence)

Definition at line 89 of file VLAT2.h.

References precedence_p.

Member Data Documentation

VisBufferComponents::EnumType vi::VlatFunctor::id_p

Definition at line 99 of file VLAT2.h.

Referenced by byDecreasingPrecedence(), getId(), and setId().

casacore::String vi::VlatFunctor::name_p

Definition at line 100 of file VLAT2.h.

casacore::Int vi::VlatFunctor::precedence_p

Definition at line 101 of file VLAT2.h.

Referenced by byDecreasingPrecedence(), and setPrecedence().

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