29 #ifndef LATTICES_TEMPLATTICE_H
30 #define LATTICES_TEMPLATTICE_H
132 template<
class T>
class TempLattice :
public Lattice<T>
181 virtual void flush();
210 virtual void apply (T (*
function)(T));
211 virtual void apply (T (*
function)(
const T&));
280 #ifndef CASACORE_NO_AUTO_TEMPLATES
281 #include <casacore/lattices/Lattices/TempLattice.tcc>
282 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
virtual LatticeIterInterface< T > * 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...
TempLattice(const TempLattice< T > &other)
The copy constructor uses reference semantics.
A Lattice that can be used for temporary storage.
virtual ~TempLattice()
The destructor removes the Lattice from memory and if necessary disk.
virtual uInt maximumCacheSize() const
Maximum size - not necessarily all used.
Map a domain object into a range object via operator().
virtual T getAt(const IPosition &where) const
Get or put a single element in the lattice.
TempLattice(const TiledShape &shape, Int maxMemoryInMB=-1)
Create a TempLattice of the specified shape.
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
virtual void flush()
Flush the data.
virtual void apply(T(*function)(T))
Replace every element, x, of the Lattice with the result of f(x).
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
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.
TempLattice()
The default constructor creates a TempLattice containing a default ArrayLattice object.
virtual Bool canReferenceArray() const
Can the lattice data be referenced as an array section?
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
virtual void reopen()
If needed, reopen a temporarily closed TempLattice.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
A base class for Lattice iterators.
Define the shape and tile shape.
A templated, abstract base class for array-like objects.
Referenced counted pointer for constant data.
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
virtual IPosition shape() const
Return the shape of the Lattice including all degenerate axes.
virtual Bool isWritable() const
Is the TempLattice writable? It should be.
virtual void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
bool Bool
Define the standard types used by Casacore.
virtual void set(const T &value)
Set all of the elements in the Lattice to the given value.
TempLattice< T > & operator=(const TempLattice< T > &other)
The assignment operator with reference semantics.
virtual Bool isPaged() const
Is the TempLattice paged to disk?
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
virtual void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
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.
TempLattice(const TiledShape &shape, Double maxMemoryInMB)
The class implementing TempLattice.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
CountedPtr< TempLatticeImpl< T > > itsImpl
virtual Bool ok() const
Check class internals - used for debugging.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Abstract base class to steer lattice iterators.