28 #ifndef LATTICES_LCREGIONSINGLE_H
29 #define LATTICES_LCREGIONSINGLE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/lattices/LRegions/LCRegion.h>
LCRegionSingle & operator=(const LCRegionSingle &other)
Assignment (copy semantics) is only useful for derived classes.
virtual void apply(const Functional< Bool, Bool > &function)
void setMaskPtr(Lattice< Bool > &mask)
Set the pointer to the mask in the derived class.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
virtual void doPutSlice(const Array< Bool > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of the mask.
virtual Bool hasMask() const
Does the region have a mask?
virtual void apply(Bool(*function)(const Bool &))
virtual ~LCRegionSingle()
LCRegionSingle(const IPosition &latticeShape)
Construct with the lattice shape only.
virtual Bool doGetSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual getting of the mask.
virtual void apply(Bool(*function)(Bool))
Replace every element, x, of the Lattice with the result of f(x).
virtual void copyData(const Lattice< Bool > &from)
Copy the data from the given lattice to this one.
Lattice< Bool > * itsMaskPtr
virtual void set(const Bool &value)
The following "put" functions are described in detail in class Lattice.
Bool masksEqual(const LCRegion &other) const
Is the mask of this region the same as the mask of the other.
const Array< Bool > maskArray() const
Get the mask (as an array).
virtual LatticeIterInterface< Bool > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
Make an iterator.
LCRegionSingle(const LCRegionSingle &other)
Copy constructor (copy semantics).
virtual void putAt(const Bool &value, const IPosition &where)
Put the value of a single element.
const IPosition & latticeShape() const
Give the full lattice shape.
this file contains all the compiler specific defines
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
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.