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