28 #ifndef LATTICES_MASKEDLATTICE_H 29 #define LATTICES_MASKEDLATTICE_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/lattices/Lattices/Lattice.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 uInt ndim() const
Return the number of axes in this Lattice.
A templated, abstract base class for array-like objects with masks.
Bool getMaskSlice(COWPtr< Array< Bool > > &buffer, const Slicer §ion, Bool removeDegenerateAxes=False) const
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...
virtual Lattice< T > * clone() const
Make a copy of the derived object (reference semantics).
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).
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.
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 ...
virtual const Lattice< Bool > & pixelMask() const
Get access to the pixelmask.
const LatticeRegion & region() const
Get the region used.
An optionally strided region in a Lattice.
this file contains all the compiler specific defines
LatticeRegion * itsDefRegPtr