29 #ifndef LATTICES_TEMPLATTICEIMPL_H 30 #define LATTICES_TEMPLATTICEIMPL_H 34 #include <casacore/casa/aips.h> 35 #include <casacore/lattices/Lattices/Lattice.h> 36 #include <casacore/lattices/Lattices/TiledShape.h> 37 #include <casacore/tables/Tables/Table.h> 38 #include <casacore/casa/Utilities/CountedPtr.h> 137 void apply (T (*
function)(
const T&))
165 {
itsLatticePtr->setCacheSizeFromPath (sliceShape, windowStart, windowLength,
246 #ifndef CASACORE_NO_AUTO_TEMPLATES 247 #include <casacore/lattices/Lattices/TempLatticeImpl.tcc> 248 #endif //# CASACORE_NO_AUTO_TEMPLATES A Vector of integers, for indexing into Array<T> objects.
void setCacheSizeFromPath(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath)
Set the cache size as to "fit" the indicated path.
void apply(const Functional< T, T > &function)
uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
Bool isPaged() const
Is the TempLattice paged to disk?
Map a domain object into a range object via operator().
Main interface class to a read/write table.
IPosition doNiceCursorShape(uInt maxPixels)
Get the best cursor shape.
TempLatticeImpl()
The default constructor creates a TempLatticeImpl containing a default ArrayLattice object...
T getAt(const IPosition &where) const
Get or put a single element in the lattice.
uInt maximumCacheSize() const
Maximum size - not necessarily all used.
void apply(T(*function)(const T &))
Bool empty() const
Test for empty.
void tempClose()
Close the Lattice temporarily (if it is paged to disk).
void apply(T(*function)(T))
Replace every element, x, of the Lattice with the result of f(x).
Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
CountedPtr< Lattice< T > > itsLatticePtr
A base class for Lattice iterators.
Define the shape and tile shape.
Referenced counted pointer for constant data.
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...
void deleteTable()
Make sure that the temporary table gets deleted.
void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be be big enough for the indicated number of tiles...
IPosition shape() const
Return the shape of the Lattice including all degenerate axes.
bool Bool
Define the standard types used by Casacore.
void tempReopen() const
Do the actual reopen of the temporarily closed table (if not open already).
TempLatticeImpl< T > & operator=(const TempLatticeImpl< T > &other)
The assignment operator cannot be used.
template <class T, class U> class vector;
void init(const TiledShape &shape, Double maxMemoryInMB=-1)
Initialize the object.
Bool ok() const
Check class internals - used for debugging.
Specify which elements to extract from an n-dimensional array.
Bool isWritable() const
Is the TempLattice writable? It should be.
void setMaximumCacheSize(uInt howManyPixels)
Set the maximum (allowed) cache size as indicated.
~TempLatticeImpl()
The destructor removes the Lattice from memory and if necessary disk.
void flush()
Flush the data.
void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
Bool canReferenceArray() const
Can the lattice data be referenced as an array section?
void reopen()
If needed, reopen a temporarily closed TempLatticeImpl.
The class implementing TempLattice.
void putAt(const T &value, const IPosition &where)
String: the storage and methods of handling collections of characters.
void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
void showCacheStatistics(ostream &os) const
Report on cache success.
this file contains all the compiler specific defines
void flush(Bool fsync=False, Bool recursive=False)
Flush the table, i.e.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Abstract base class to steer lattice iterators.
void doReopen() const
Do the reopen of the table (if not open already).