29 #ifndef LATTICES_TEMPLATTICEIMPL_H
30 #define LATTICES_TEMPLATTICEIMPL_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
void tempReopen() const
Do the actual reopen of the temporarily closed table (if not open already).
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)
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...
void set(const T &value)
Set all of the elements in the Lattice to the given value.
void apply(T(*function)(const T &))
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
uInt advisedMaxPixels() const
This function returns the recommended maximum number of pixels to include in the cursor of an iterato...
A base class for Lattice iterators.
Define the shape and tile shape.
Referenced counted pointer for constant data.
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...
void doReopen() const
Do the reopen of the table (if not open already).
bool Bool
Define the standard types used by Casacore.
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...
TempLatticeImpl< T > & operator=(const TempLatticeImpl< T > &other)
The assignment operator cannot be used.
void init(const TiledShape &shape, Double maxMemoryInMB=-1)
Initialize the object.
uInt maximumCacheSize() const
Maximum size - not necessarily all used.
Specify which elements to extract from an n-dimensional array.
void showCacheStatistics(ostream &os) const
Report on cache success.
Bool ok() const
Check class internals - used for debugging.
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.
void reopen()
If needed, reopen a temporarily closed TempLatticeImpl.
The class implementing TempLattice.
void putAt(const T &value, const IPosition &where)
T getAt(const IPosition &where) const
Get or put a single element in the lattice.
String: the storage and methods of handling collections of characters.
IPosition shape() const
Return the shape of the Lattice including all degenerate axes.
void clearCache()
Clears and frees up the caches, but the maximum allowed cache size is unchanged from when setCacheSiz...
Bool isPaged() const
Is the TempLattice paged to disk?
Bool isWritable() const
Is the TempLattice writable? It should be.
Bool canReferenceArray() const
Can the lattice data be referenced as an array section?
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.
Bool empty() const
Test for empty.