28 #ifndef LATTICES_LELARRAYBASE_H
29 #define LATTICES_LELARRAYBASE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Array.h>
LELArrayBase & operator=(const LELArrayBase &other)
Assignment (reference semantics).
void setMask(Array< Bool > &other)
Set the mask from given array (takes reference).
void setMask(const Array< Bool > &other)
Set the mask from given array (takes reference).
void combineMask(const Array< Bool > &mask)
LELArrayBase()
Default constructor sets to mask all true.
void setMask(const LELArrayBase &other)
Set the mask from the mask of the other value.
void combineOrAnd(Bool desiredValue, Array< Bool > &value, const Array< Bool > &temp)
Combine for two arrays taking the true/false array values into account.
void combineOrAnd(Bool desiredValue, const Array< Bool > &value)
Combine the mask with the given value in case of an OR or AND.
Array< Bool > * itsMaskPtr
const Array< Bool > & mask() const
Get mask.
LELArrayBase(const Array< Bool > &mask)
Constructor takes mask.
LELArrayBase(const LELArrayBase &other)
Copy constructor (reference semantics).
Bool isMasked() const
Does the value have a mask?
void removeMask()
Remove the mask.
void setMask(const LELArrayBase &left, const LELArrayBase &right)
Set the mask by combining the masks of both values.
void combineMask(const LELArrayBase &other)
Combine the mask of this and the other value (by anding them).
void combineOrAnd(Bool desiredValue, Array< Bool > &value, const Array< Bool > &temp, const Array< Bool > &tempMask)
Combine for two arrays taking the true/false array values and mask into account.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.