28 #ifndef LATTICES_MASKEDLATTICE_H
29 #define LATTICES_MASKEDLATTICE_H
217 template <
class T>
class MaskedLattice :
public Lattice<T>
328 #ifndef CASACORE_NO_AUTO_TEMPLATES
329 #include <casacore/lattices/Lattices/MaskedLattice.tcc>
330 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
MaskedLattice< T > & operator=(const MaskedLattice< T > &)
Assignment can only be used by derived classes.
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
virtual Lattice< T > * clone() const
Make a copy of the derived object (reference semantics).
Bool getMaskSlice(COWPtr< Array< Bool > > &buffer, const Slicer §ion, Bool removeDegenerateAxes=False) const
A templated, abstract base class for array-like objects with masks.
virtual Bool hasPixelMask() const
Does the lattice have a pixelmask? The default implementation returns False.
virtual const LatticeRegion * getRegionPtr() const =0
Get a pointer to the region used.
virtual Bool isMasked() const
Has the object really a mask? The default implementation returns True if the MaskedLattice has a regi...
Bool getMask(COWPtr< Array< Bool > > &buffer, Bool removeDegenerateAxes=False) const
Get the mask or a slice from the mask.
A templated, abstract base class for array-like objects.
virtual IPosition shape() const =0
Return the shape of the Lattice including all degenerate axes (ie.
virtual MaskedLattice< T > * cloneML() const =0
Make a copy of the object (reference semantics).
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
Copy-On-Write-Pointer class - allows control of copy based on constness.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
The function (in the derived classes) doing the actual work.
bool Bool
Define the standard types used by Casacore.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
MaskedLattice()
Default constructor.
Specify which elements to extract from an n-dimensional array.
virtual ~MaskedLattice()
a virtual destructor is needed so that it will use the actual destructor in the derived class ...
const LatticeRegion & region() const
Get the region used.
An optionally strided region in a Lattice.
LatticeRegion * itsDefRegPtr
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.