28 #ifndef LATTICES_REBINLATTICE_H
29 #define LATTICES_REBINLATTICE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Array.h>
35 #include <casacore/casa/Arrays/Slicer.h>
36 #include <casacore/lattices/Lattices/MaskedLattice.h>
197 #ifndef CASACORE_NO_AUTO_TEMPLATES
198 #include <casacore/lattices/Lattices/RebinLattice.tcc>
LockType
Define the possible lock types.
virtual ~RebinLattice()
Destructor.
virtual Bool isWritable() const
The lattice is not writable.
virtual void resync()
Resynchronize the Lattice object with the lattice file.
virtual void reopen()
If needed, reopen a temporarily closed Lattice.
virtual Bool isMasked() const
Is the lattice masked? It is if its parent lattice is masked.
RebinLattice(const RebinLattice< T > &other)
Copy constructor (reference semantics)
virtual Bool hasLock(FileLocker::LockType) const
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
virtual Bool isPaged() const
Is the lattice paged to disk?
virtual const LatticeRegion * getRegionPtr() const
Get a pointer the region/mask object.
virtual String name(Bool stripPath=False) const
Return the name of the parent lattice.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle locking of the lattice which is delegated to its parent.
virtual void flush()
Flush the data.
void bin(const Array< T > &dataIn, const Array< Bool > &maskIn)
void bin(const Array< T > &dataIn)
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of an array of values.
virtual MaskedLattice< T > * cloneML() const
Make a copy of the object (reference semantics).
void getDataAndMask(const Slicer §ion)
RebinLattice()
Default constructor (Object is unuseable)
Slicer findOriginalSlicer(const Slicer §ion) const
RebinLattice< T > & operator=(const RebinLattice< T > &other)
Assignment (reference semantics)
static IPosition rebinShape(const IPosition &shapeLatticeIn, const IPosition &bin)
Static function needed by LEL.
virtual IPosition shape() const
Returns the shape of the lattice.
virtual Bool doGetMaskSlice(Array< Bool > &buffer, const Slicer §ion)
Get a section of the mask.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
MaskedLattice< T > * itsLatticePtr
RebinLattice(const MaskedLattice< T > &lattice, const IPosition &bin)
Constructor.
virtual Bool ok() const
Check class internals - used for debugging.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.