26#ifndef LATTICES_LCHDF5MASK_H
27#define LATTICES_LCHDF5MASK_H
30#include <casacore/casa/aips.h>
31#include <casacore/lattices/LRegions/LCBox.h>
32#include <casacore/lattices/Lattices/HDF5Lattice.h>
88 Bool useRef)
const override;
120 const IPosition& newLatticeShape)
const override;
LCHDF5Mask & operator=(const LCHDF5Mask &other)
Assignment (reference semantics).
Bool isWritable() const override
An LCHDF5Mask is writable if the underlying HDF5Lattice is.
LCHDF5Mask(const TiledShape &latticeShape, const std::shared_ptr< HDF5File > &file, const String &maskName)
Construct an HDF5Mask object for (part of) a lattice.
String type() const override
Region type.
LCHDF5Mask(HDF5Lattice< Bool > &mask, const IPosition &blc, const IPosition &latticeShape)
Create the object from a record (for an existing mask).
Bool equals(const LCRegion &other) const override
Comparison.
TableRecord toRecord(const String &tableName) const override
Convert the (derived) object to a record.
LCRegion * cloneRegion() const override
Make a copy of the derived object.
LCHDF5Mask(HDF5Lattice< Bool > &mask, const LCBox &box)
uInt advisedMaxPixels() const override
Returns the maximum recommended number of pixels for a cursor.
LCHDF5Mask(const LCHDF5Mask &other)
Copy constructor (copy semantics).
LCRegion * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const override
Construct another LCHDF5Mask (for e.g.
LCHDF5Mask(const TiledShape &maskShape, const LCBox &box, const std::shared_ptr< HDF5File > &file, const String &maskName)
HDF5Lattice< Bool > itsMask
LatticeIterInterface< Bool > * makeIter(const LatticeNavigator &navigator, Bool useRef) const override
This function is used by the LatticeIterator class to generate an iterator of the correct type for th...
virtual ~LCHDF5Mask()
Destructor.
IPosition doNiceCursorShape(uInt maxPixels) const override
Help the user pick a cursor for most efficient access.
static String className()
Get the class name (to store in the record).
void flush() override
Flush the data (but do not unlock).
static LCHDF5Mask * fromRecord(const TableRecord &, const String &tablename)
Convert correct object from a record.
const IPosition & latticeShape() const
Give the full lattice shape.
String: the storage and methods of handling collections of characters.
For temporary backward namespace compatibility, use casa as alias for casacore.
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
bool Bool
Define the standard types used by Casacore.