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

#include <FlagDataHandler.h>

List of all members.

Public Member Functions

 FlagMapper (Bool flag, vector< vector< uInt > > selectedCorrelations, CubeView< Bool > *commonFlagsView, CubeView< Bool > *originalFlagsView, CubeView< Bool > *privateFlagsView=NULL, VectorView< Bool > *commonFlagRowView=NULL, VectorView< Bool > *originalFlagRowView=NULL, VectorView< Bool > *privateFlagRowView=NULL)
 FlagMapper (Bool flag, vector< vector< uInt > > selectedCorrelations)
 ~FlagMapper ()
void setParentCubes (CubeView< Bool > *commonFlagsView, CubeView< Bool > *originalFlagsView, CubeView< Bool > *privateFlagsView=NULL)
void setParentFlagRow (VectorView< Bool > *commonFlagRowView, VectorView< Bool > *originalFlagRowView, VectorView< Bool > *privateFlagRowView=NULL)
void applyFlag (uInt chan, uInt row)
void applyFlag (uInt pol, uInt channel, uInt row)
void applyFlagRow (uInt row)
void applyFlagInRow (uInt row)
Bool getOriginalFlags (uInt chan, uInt row)
Bool getModifiedFlags (uInt chan, uInt row)
Bool getPrivateFlags (uInt chan, uInt row)
Bool getOriginalFlags (uInt pol, uInt channel, uInt row)
Bool getModifiedFlags (uInt pol, uInt channel, uInt row)
Bool getPrivateFlags (uInt pol, uInt channel, uInt row)
void setModifiedFlags (uInt pol, uInt channel, uInt row)
 These methods are needed for flag extension.
void setPrivateFlags (uInt pol, uInt channel, uInt row)
Bool getOriginalFlagRow (uInt row)
Bool getModifiedFlagRow (uInt row)
Bool getPrivateFlagRow (uInt row)
const IPositionshape () const
void shape (Int &chan, Int &row) const
void shape (Int &pol, Int &chan, Int &row) const
vector< vector< uInt > > getSelectedCorrelations ()
void activateCheckMode ()
uInt nSelectedCorrelations ()
uInt flagsPerRow ()

Protected Member Functions

void setExpressionMapping (vector< vector< uInt > > selectedCorrelations)
void applyCommonFlags (uInt pol, uInt channel, uInt row)
 Apply flags to common flag cube.
void applyPrivateFlags (uInt pol, uInt channel, uInt row)
 Apply flags to common and private flag cubes.
void checkCommonFlags (uInt pol, uInt channel, uInt row)
 Apply flags to common and private flag cubes.
void applyCommonFlagRow (uInt row)
 Apply flags to common flag rows.
void applyPrivateFlagRow (uInt row)
 Apply flags to common and private flag rows.

Private Attributes

Bool flag_p
IPosition reducedLength_p
CubeView< Bool > * commonFlagsView_p
CubeView< Bool > * originalFlagsView_p
CubeView< Bool > * privateFlagsView_p
VectorView< Bool > * commonFlagRowView_p
VectorView< Bool > * originalFlagRowView_p
VectorView< Bool > * privateFlagRowView_p
vector< vector< uInt > > selectedCorrelations_p
uInt nSelectedCorrelations_p
uInt flagsPerRow_p
void(casa::FlagMapper::* applyFlag_p )(uInt, uInt, uInt)
void(casa::FlagMapper::* applyFlagRow_p )(uInt)

Detailed Description

Definition at line 430 of file FlagDataHandler.h.


Constructor & Destructor Documentation

casa::FlagMapper::FlagMapper ( Bool  flag,
vector< vector< uInt > >  selectedCorrelations,
CubeView< Bool > *  commonFlagsView,
CubeView< Bool > *  originalFlagsView,
CubeView< Bool > *  privateFlagsView = NULL,
VectorView< Bool > *  commonFlagRowView = NULL,
VectorView< Bool > *  originalFlagRowView = NULL,
VectorView< Bool > *  privateFlagRowView = NULL 
)
casa::FlagMapper::FlagMapper ( Bool  flag,
vector< vector< uInt > >  selectedCorrelations 
)

Member Function Documentation

Definition at line 491 of file FlagDataHandler.h.

References applyFlag_p, and checkCommonFlags().

void casa::FlagMapper::applyCommonFlagRow ( uInt  row) [protected]

Apply flags to common flag rows.

void casa::FlagMapper::applyCommonFlags ( uInt  pol,
uInt  channel,
uInt  row 
) [protected]

Apply flags to common flag cube.

void casa::FlagMapper::applyFlag ( uInt  chan,
uInt  row 
)
void casa::FlagMapper::applyFlag ( uInt  pol,
uInt  channel,
uInt  row 
)
void casa::FlagMapper::applyPrivateFlagRow ( uInt  row) [protected]

Apply flags to common and private flag rows.

void casa::FlagMapper::applyPrivateFlags ( uInt  pol,
uInt  channel,
uInt  row 
) [protected]

Apply flags to common and private flag cubes.

void casa::FlagMapper::checkCommonFlags ( uInt  pol,
uInt  channel,
uInt  row 
) [protected]

Apply flags to common and private flag cubes.

Referenced by activateCheckMode().

Definition at line 494 of file FlagDataHandler.h.

References flagsPerRow_p.

Bool casa::FlagMapper::getModifiedFlags ( uInt  pol,
uInt  channel,
uInt  row 
)
Bool casa::FlagMapper::getOriginalFlags ( uInt  pol,
uInt  channel,
uInt  row 
)
Bool casa::FlagMapper::getPrivateFlags ( uInt  pol,
uInt  channel,
uInt  row 
)
vector< vector<uInt> > casa::FlagMapper::getSelectedCorrelations ( ) [inline]

Definition at line 489 of file FlagDataHandler.h.

References selectedCorrelations_p.

Definition at line 493 of file FlagDataHandler.h.

References nSelectedCorrelations_p.

void casa::FlagMapper::setExpressionMapping ( vector< vector< uInt > >  selectedCorrelations) [protected]
void casa::FlagMapper::setModifiedFlags ( uInt  pol,
uInt  channel,
uInt  row 
)

These methods are needed for flag extension.

void casa::FlagMapper::setParentCubes ( CubeView< Bool > *  commonFlagsView,
CubeView< Bool > *  originalFlagsView,
CubeView< Bool > *  privateFlagsView = NULL 
)
void casa::FlagMapper::setParentFlagRow ( VectorView< Bool > *  commonFlagRowView,
VectorView< Bool > *  originalFlagRowView,
VectorView< Bool > *  privateFlagRowView = NULL 
)
void casa::FlagMapper::setPrivateFlags ( uInt  pol,
uInt  channel,
uInt  row 
)
const IPosition& casa::FlagMapper::shape ( ) const [inline]

Definition at line 469 of file FlagDataHandler.h.

References reducedLength_p.

void casa::FlagMapper::shape ( Int chan,
Int row 
) const [inline]

Definition at line 474 of file FlagDataHandler.h.

References reducedLength_p.

void casa::FlagMapper::shape ( Int pol,
Int chan,
Int row 
) const [inline]

Definition at line 481 of file FlagDataHandler.h.

References reducedLength_p.


Member Data Documentation

void(casa::FlagMapper::* casa::FlagMapper::applyFlag_p)(uInt, uInt, uInt) [private]

Definition at line 526 of file FlagDataHandler.h.

Referenced by activateCheckMode().

void(casa::FlagMapper::* casa::FlagMapper::applyFlagRow_p)(uInt) [private]

Definition at line 527 of file FlagDataHandler.h.

Definition at line 520 of file FlagDataHandler.h.

Definition at line 517 of file FlagDataHandler.h.

Definition at line 515 of file FlagDataHandler.h.

Definition at line 525 of file FlagDataHandler.h.

Referenced by flagsPerRow().

Definition at line 524 of file FlagDataHandler.h.

Referenced by nSelectedCorrelations().

Definition at line 521 of file FlagDataHandler.h.

Definition at line 518 of file FlagDataHandler.h.

Definition at line 522 of file FlagDataHandler.h.

Definition at line 519 of file FlagDataHandler.h.

Definition at line 516 of file FlagDataHandler.h.

Referenced by shape().

vector< vector<uInt> > casa::FlagMapper::selectedCorrelations_p [private]

Definition at line 523 of file FlagDataHandler.h.

Referenced by getSelectedCorrelations().


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