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>
181 virtual void flush();
196 virtual void set (
const T&
value);
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 virtual Bool canReferenceArray() const
Can the lattice data be referenced as an array section?
A Vector of integers, for indexing into Array<T> objects.
TempLattice(const TempLattice< T > &other)
The copy constructor uses reference semantics.
virtual Bool isPaged() const
Is the TempLattice paged to disk?
A Lattice that can be used for temporary storage.
virtual ~TempLattice()
The destructor removes the Lattice from memory and if necessary disk.
virtual Bool isWritable() const
Is the TempLattice writable? It should be.
Map a domain object into a range object via operator().
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
TempLattice(const TiledShape &shape, Int maxMemoryInMB=-1)
Create a TempLattice of the specified shape.
virtual void flush()
Flush the data.
virtual uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
virtual void showCacheStatistics(ostream &os) const
Report on cache success.
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 IPosition shape() const
Return the shape of the Lattice including all degenerate axes.
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.
virtual T getAt(const IPosition &where) const
Get or put a single element in the lattice.
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 IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
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.
TempLattice< T > & operator=(const TempLattice< T > &other)
The assignment operator with reference semantics.
template <class T, class U> class vector;
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...
virtual Bool ok() const
Check class internals - used for debugging.
Specify which elements to extract from an n-dimensional array.
TempLattice(const TiledShape &shape, Double maxMemoryInMB)
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...
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 uInt maximumCacheSize() const
Maximum size - not necessarily all used.
this file contains all the compiler specific defines
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Abstract base class to steer lattice iterators.