28 #ifndef LATTICES_LATTICEBASE_H
29 #define LATTICES_LATTICEBASE_H
96 virtual DataType
dataType()
const = 0;
122 virtual void save (
const String& fileName)
const;
147 virtual void flush();
virtual void tempClose()
Temporarily close the lattice.
A Vector of integers, for indexing into Array<T> objects.
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
virtual void save(const String &fileName) const
Save the image in an AipsIO file with the given name.
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be big enough for the indicated number of tiles...
virtual uInt advisedMaxPixels() const =0
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
virtual Bool hasLock(FileLocker::LockType) const
virtual void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
virtual DataType dataType() const =0
Get the data type of the lattice.
LatticeBase & operator=(const LatticeBase &)
Envelope class to handle Lattice Coordinates in LEL.
A non-templated, abstract base class for array-like objects.
virtual String imageType() const
Get the image type (returns name of derived class).
virtual void resync()
Resynchronize the Lattice object with the lattice file.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
The function (in the derived classes) doing the actual work.
IPosition niceCursorShape() const
Bool isEqual(const IPosition &other) const
Element-by-element comparison for equality.
virtual String name(Bool stripPath=False) const
Return the name of the current Lattice object.
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 uInt maximumCacheSize() const
Maximum cache size - not necessarily all used.
IPosition niceCursorShape(uInt maxPixels) const
Returns a recommended cursor shape for iterating through all the pixels in the Lattice.
virtual Bool isWritable() const
Is the lattice writable? The default implementation returns True.
virtual void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
virtual Bool lock(FileLocker::LockType, uInt nattempts)
It is strongly recommended to use class LatticeLocker to handle lattice locking.
virtual void flush()
Flush the data (but do not unlock).
virtual IPosition shape() const =0
Return the shape of the Lattice including all degenerate axes (ie.
virtual uInt ndim() const
Return the number of axes in this Lattice.
Bool conform(const LatticeBase &other) const
Return a value of "True" if this instance of Lattice and 'other' have the same shape, otherwise returns a value of "False".
virtual ~LatticeBase()
A virtual destructor is needed so that it will use the actual destructor in the derived class...
virtual Bool ok() const
Check class internals - used for debugging.
virtual Bool canReferenceArray() const
Can the lattice data be referenced as an array section? That is the case for an ArrayLattice or a Tem...
bool Bool
Define the standard types used by Casacore.
LatticeBase(const LatticeBase &)
Copy constructor and assignment can only be used by derived classes.
virtual size_t nelements() const
Return the total number of elements in this Lattice.
void throwBoolMath() const
Throw an exception for arithmetic on a Bool Lattice.
virtual LatticeBase * clone() const =0
Make a copy of the derived object (reference semantics).
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
String: the storage and methods of handling collections of characters.
LatticeBase()
Define default constructor to be used by derived classes.
virtual Bool isPersistent() const
Is the lattice persistent and can it be loaded by other processes as well? That is the case for a Pag...
virtual Bool isPaged() const
Is the lattice paged to disk? The default implementation returns False.
LockType
Define the possible lock types.
virtual LELCoordinates lelCoordinates() const
Return the coordinates of the lattice.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.