29 #ifndef LATTICES_LATTICEREGION_H
30 #define LATTICES_LATTICEREGION_H
128 virtual void flush();
A Vector of integers, for indexing into Array<T> objects.
virtual Bool hasLock(FileLocker::LockType) const
virtual Lattice< Bool > * clone() const
Make a copy of the object (reference semantics).
virtual Bool ok() const
Check class internals - used for debugging.
virtual void doPutSlice(const Array< Bool > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual putting of the mask.
LatticeRegion & operator=(const LatticeRegion &other)
Assignment (reference semantics).
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Help the user pick a cursor for most efficient access.
const LCRegion & region() const
Get the LCRegion object describing the region.
Map a domain object into a range object via operator().
Bool hasMask() const
Has the region a mask?
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
const Slicer & slicer() const
Get the Slicer object describing the region.
virtual size_t nelements() const
Returns the total number of elements in this LatticeRegion.
virtual Bool isWritable() const
Is the LatticeRegion writable?
virtual Bool doGetSlice(Array< Bool > &buffer, const Slicer §ion)
Do the actual getting of the mask.
virtual void flush()
Flush the data (but do not unlock).
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
virtual void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
virtual uInt maximumCacheSize() const
Maximum size - not necessarily all used.
virtual uInt ndim() const
Returns the number of axes in this LatticeRegion.
A base class for Lattice iterators.
A templated, abstract base class for array-like objects.
virtual IPosition shape() const
Returns the shape of the LatticeRegion including all degenerate axes (i.e.
virtual void tempClose()
Temporarily close the lattice.
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
virtual void resync()
Resynchronize the PagedArray object with the lattice file.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking.
bool Bool
Define the standard types used by Casacore.
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...
virtual void copyData(const Lattice< Bool > &from)
Copy the data from the given lattice to this one.
Slicer convert(const Slicer &slicer) const
Convert positions to positions in the parent object.
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be be big enough for the indicated number of tiles...
Specify which elements to extract from an n-dimensional array.
LatticeRegion()
The default constructor creates a LatticeRegion that is useless for just about everything, except that it can be assigned to with the assignment operator.
virtual void set(const Bool &value)
The following "put" functions are described in detail in class Lattice.
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 void putAt(const Bool &value, const IPosition &where)
Put the value of a single element.
An optionally strided region in a Lattice.
virtual void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
LockType
Define the possible lock types.
virtual void apply(Bool(*function)(Bool))
Replace every element, x, of the Lattice with the result of f(x).
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Abstract base class to steer lattice iterators.
Abstract base class to define a region of interest in lattice coordinates.