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>
67 const std::shared_ptr<HDF5File>& file,
const String& maskName);
69 const std::shared_ptr<HDF5File>& file,
const String& maskName);
virtual LCRegion * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
Construct another LCHDF5Mask (for e.g.
LCHDF5Mask & operator=(const LCHDF5Mask &other)
Assignment (reference semantics).
LCHDF5Mask(const TiledShape &latticeShape, const std::shared_ptr< HDF5File > &file, const String &maskName)
Construct an HDF5Mask object for (part of) a lattice.
virtual void flush()
Flush the data (but do not unlock).
LCHDF5Mask(HDF5Lattice< Bool > &mask, const IPosition &blc, const IPosition &latticeShape)
Create the object from a record (for an existing mask).
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
LCHDF5Mask(HDF5Lattice< Bool > &mask, const LCBox &box)
virtual Bool operator==(const LCRegion &other) const
Comparison.
LCHDF5Mask(const LCHDF5Mask &other)
Copy constructor (copy semantics).
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Help the user pick a cursor for most efficient access.
LCHDF5Mask(const TiledShape &maskShape, const LCBox &box, const std::shared_ptr< HDF5File > &file, const String &maskName)
HDF5Lattice< Bool > itsMask
virtual LCRegion * cloneRegion() const
Make a copy of the derived object.
virtual TableRecord toRecord(const String &tableName) const
Convert the (derived) object to a record.
virtual String type() const
Region type.
virtual ~LCHDF5Mask()
Destructor.
virtual Bool isWritable() const
An LCHDF5Mask is writable if the underlying HDF5Lattice is.
static String className()
Get the class name (to store in the record).
static LCHDF5Mask * fromRecord(const TableRecord &, const String &tablename)
Convert correct object from a record.
virtual LatticeIterInterface< Bool > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
This function is used by the LatticeIterator class to generate an iterator of the correct type for th...
const IPosition & latticeShape() const
Give the full lattice shape.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
bool Bool
Define the standard types used by Casacore.