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

#include <FlagDataHandler.h>

Public Member Functions

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

Protected Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 420 of file FlagDataHandler.h.

Constructor & Destructor Documentation

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

Member Function Documentation

void casa::FlagMapper::activateCheckMode ( )
inline

Definition at line 481 of file FlagDataHandler.h.

References applyFlag_p, and checkCommonFlags().

void casa::FlagMapper::applyCommonFlagRow ( casacore::uInt  row)
protected

Apply flags to common flag rows.

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

Apply flags to common flag cube.

void casa::FlagMapper::applyFlag ( casacore::uInt  chan,
casacore::uInt  row 
)
void casa::FlagMapper::applyFlag ( casacore::uInt  pol,
casacore::uInt  channel,
casacore::uInt  row 
)
void casa::FlagMapper::applyFlagInRow ( casacore::uInt  row)
void casa::FlagMapper::applyFlagRow ( casacore::uInt  row)
void casa::FlagMapper::applyPrivateFlagRow ( casacore::uInt  row)
protected

Apply flags to common and private flag rows.

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

Apply flags to common and private flag cubes.

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

Apply flags to common and private flag cubes.

Referenced by activateCheckMode().

casacore::uInt casa::FlagMapper::flagsPerRow ( )
inline

Definition at line 484 of file FlagDataHandler.h.

References flagsPerRow_p.

casacore::Bool casa::FlagMapper::getModifiedFlagRow ( casacore::uInt  row)
casacore::Bool casa::FlagMapper::getModifiedFlags ( casacore::uInt  chan,
casacore::uInt  row 
)
casacore::Bool casa::FlagMapper::getModifiedFlags ( casacore::uInt  pol,
casacore::uInt  channel,
casacore::uInt  row 
)
casacore::Bool casa::FlagMapper::getOriginalFlagRow ( casacore::uInt  row)
casacore::Bool casa::FlagMapper::getOriginalFlags ( casacore::uInt  chan,
casacore::uInt  row 
)
casacore::Bool casa::FlagMapper::getOriginalFlags ( casacore::uInt  pol,
casacore::uInt  channel,
casacore::uInt  row 
)
casacore::Bool casa::FlagMapper::getPrivateFlagRow ( casacore::uInt  row)
casacore::Bool casa::FlagMapper::getPrivateFlags ( casacore::uInt  chan,
casacore::uInt  row 
)
casacore::Bool casa::FlagMapper::getPrivateFlags ( casacore::uInt  pol,
casacore::uInt  channel,
casacore::uInt  row 
)
std::vector< std::vector<casacore::uInt> > casa::FlagMapper::getSelectedCorrelations ( )
inline

Definition at line 479 of file FlagDataHandler.h.

References selectedCorrelations_p.

casacore::uInt casa::FlagMapper::nSelectedCorrelations ( )
inline

Definition at line 483 of file FlagDataHandler.h.

References nSelectedCorrelations_p.

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

These methods are needed for flag extension.

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

Definition at line 459 of file FlagDataHandler.h.

References reducedLength_p.

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

Definition at line 464 of file FlagDataHandler.h.

References reducedLength_p.

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

Definition at line 471 of file FlagDataHandler.h.

References reducedLength_p.

Member Data Documentation

void(casa::FlagMapper::* casa::FlagMapper::applyFlag_p)(casacore::uInt, casacore::uInt, casacore::uInt)
private

Definition at line 515 of file FlagDataHandler.h.

Referenced by activateCheckMode().

void(casa::FlagMapper::* casa::FlagMapper::applyFlagRow_p)(casacore::uInt)
private

Definition at line 516 of file FlagDataHandler.h.

VectorView<casacore::Bool>* casa::FlagMapper::commonFlagRowView_p
private

Definition at line 509 of file FlagDataHandler.h.

CubeView<casacore::Bool>* casa::FlagMapper::commonFlagsView_p
private

Definition at line 506 of file FlagDataHandler.h.

casacore::Bool casa::FlagMapper::flag_p
private

Definition at line 504 of file FlagDataHandler.h.

casacore::uInt casa::FlagMapper::flagsPerRow_p
private

Definition at line 514 of file FlagDataHandler.h.

Referenced by flagsPerRow().

casacore::uInt casa::FlagMapper::nSelectedCorrelations_p
private

Definition at line 513 of file FlagDataHandler.h.

Referenced by nSelectedCorrelations().

VectorView<casacore::Bool>* casa::FlagMapper::originalFlagRowView_p
private

Definition at line 510 of file FlagDataHandler.h.

CubeView<casacore::Bool>* casa::FlagMapper::originalFlagsView_p
private

Definition at line 507 of file FlagDataHandler.h.

VectorView<casacore::Bool>* casa::FlagMapper::privateFlagRowView_p
private

Definition at line 511 of file FlagDataHandler.h.

CubeView<casacore::Bool>* casa::FlagMapper::privateFlagsView_p
private

Definition at line 508 of file FlagDataHandler.h.

casacore::IPosition casa::FlagMapper::reducedLength_p
private

Definition at line 505 of file FlagDataHandler.h.

Referenced by shape().

std::vector< std::vector<casacore::uInt> > casa::FlagMapper::selectedCorrelations_p
private

Definition at line 512 of file FlagDataHandler.h.

Referenced by getSelectedCorrelations().


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