28 #ifndef LATTICES_LCREGIONSINGLE_H
29 #define LATTICES_LCREGIONSINGLE_H
A Vector of integers, for indexing into Array<T> objects.
Bool masksEqual(const LCRegion &other) const
Is the mask of this region the same as the mask of the other.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
Map a domain object into a range object via operator().
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
virtual void putAt(const Bool &value, const IPosition &where)
Put the value of a single element.
LCRegionSingle & operator=(const LCRegionSingle &other)
Assignment (copy semantics) is only useful for derived classes.
virtual void set(const Bool &value)
The following "put" functions are described in detail in class Lattice.
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.
A base class for Lattice iterators.
virtual ~LCRegionSingle()
virtual Bool doGetSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual getting of the mask.
const IPosition & latticeShape() const
Give the full lattice shape.
const Array< Bool > maskArray() const
Get the mask (as an array).
bool Bool
Define the standard types used by Casacore.
virtual LatticeIterInterface< Bool > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
Make an iterator.
virtual void doPutSlice(const Array< Bool > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of the mask.
Specify which elements to extract from an n-dimensional array.
Lattice< Bool > * itsMaskPtr
void setMaskPtr(Lattice< Bool > &mask)
Set the pointer to the mask in the derived class.
Abstract base class to define a single region.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Abstract base class to steer lattice iterators.
Abstract base class to define a region of interest in lattice coordinates.
virtual Bool hasMask() const
Does the region have a mask?
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.