28 #ifndef LATTICES_LCPAGEDMASK_H
29 #define LATTICES_LCPAGEDMASK_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/lattices/LRegions/LCBox.h>
35 #include <casacore/lattices/Lattices/PagedArray.h>
LockType
Define the possible lock types.
virtual void handleDelete()
Handle deletion of the region by deleting the associated table.
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
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...
LCPagedMask(const TiledShape &latticeShape, const String &tableName)
Construct a PagedMask object for (part of) a lattice.
virtual Bool isWritable() const
An LCPagedMask is writable if the underlying PagedArray is.
virtual String type() const
Region type.
LCPagedMask & operator=(const LCPagedMask &other)
Assignment (reference semantics).
virtual uInt maximumCacheSize() const
Maximum size - not necessarily all used.
virtual Bool hasLock(FileLocker::LockType) const
static String className()
Get the class name (to store in the record).
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be be big enough for the indicated number of tiles.
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
virtual void resync()
Resynchronize the PagedArray object with the lattice file.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
LCPagedMask(const LCPagedMask &other)
Copy constructor (copy semantics).
LCPagedMask(const TiledShape &maskShape, const LCBox &box, const String &tableName)
LCPagedMask(PagedArray< Bool > &mask, const LCBox &box)
PagedArray< Bool > itsMask
virtual LCRegion * cloneRegion() const
Make a copy of the derived object.
virtual void tempClose()
Temporarily close the lattice.
virtual ~LCPagedMask()
Destructor.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Help the user pick a cursor for most efficient access.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking.
virtual void flush()
Flush the data (but do not unlock).
virtual LCRegion * doTranslate(const Vector< Float > &translateVector, const IPosition &newLatticeShape) const
Construct another LCPagedMask (for e.g.
virtual void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
static LCPagedMask * fromRecord(const TableRecord &, const String &tablename)
Convert correct object from a record.
virtual TableRecord toRecord(const String &tableName) const
Convert the (derived) object to a record.
virtual void setCacheSizeFromPath(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath)
Set the cache size as to "fit" the indicated path.
virtual Bool operator==(const LCRegion &other) const
Comparison.
virtual void handleRename(const String &newName, Bool overwrite)
Handle renaming the region by renaming the associated table.
virtual void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
LCPagedMask(PagedArray< Bool > &mask, const IPosition &blc, const IPosition &latticeShape)
Create the object from a record (for an existing mask).
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.