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