29 #ifndef LATTICES_TEMPLATTICE_H
30 #define LATTICES_TEMPLATTICE_H
34 #include <casacore/casa/aips.h>
35 #include <casacore/lattices/Lattices/TempLatticeImpl.h>
36 #include <casacore/casa/Utilities/CountedPtr.h>
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>
Referenced counted pointer for constant data.
virtual void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
virtual Bool isWritable() const
Is the TempLattice writable? It should be.
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
virtual T getAt(const IPosition &where) const
Get or put a single element in the lattice.
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 void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
virtual Bool ok() const
Check class internals - used for debugging.
virtual void apply(T(*function)(const T &))
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
virtual void apply(const Functional< T, T > &function)
CountedPtr< TempLatticeImpl< T > > itsImpl
virtual void tempClose()
Close the Lattice temporarily (if it is paged to disk).
virtual IPosition shape() const
Return the shape of the Lattice including all degenerate axes.
TempLattice(const TempLattice< T > &other)
The copy constructor uses reference semantics.
TempLattice(const TiledShape &shape, Int maxMemoryInMB=-1)
Create a TempLattice of the specified shape.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
TempLattice< T > & operator=(const TempLattice< T > &other)
The assignment operator with reference semantics.
virtual Bool isPaged() const
Is the TempLattice paged to disk?
virtual uInt maximumCacheSize() const
Maximum size - not necessarily all used.
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...
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 apply(T(*function)(T))
Replace every element, x, of the Lattice with the result of f(x).
virtual ~TempLattice()
The destructor removes the Lattice from memory and if necessary disk.
TempLattice(const TiledShape &shape, Double maxMemoryInMB)
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
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 set(const T &value)
Set all of the elements in the Lattice to the given value.
virtual void flush()
Flush the data.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
virtual Bool canReferenceArray() const
Can the lattice data be referenced as an array section?
TempLattice()
The default constructor creates a TempLattice containing a default ArrayLattice object.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.