28 #ifndef LATTICES_LATTICECACHE_H
29 #define LATTICES_LATTICECACHE_H
42 template <
class T>
class Block;
43 template <
class T>
class Lattice;
129 virtual void flush();
163 #ifndef CASACORE_NO_AUTO_TEMPLATES
164 #include <casacore/lattices/Lattices/LatticeCache.tcc>
165 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
virtual void showCacheStatistics(ostream &os)
Show the statistics of cache access.
Vector< Float > tileOverlap
Vector< Int > tileOffsetVec
Vector< Int > tileShapeVec
a class for caching image access via tiles
virtual void flush()
Flush contents.
Block< IPosition > tileLocs
LatticeCache< T > & operator=(const LatticeCache< T > &other)
void readTile(Int tile, Bool readonly)
A templated, abstract base class for array-like objects.
bool Bool
Define the standard types used by Casacore.
Array< T > & tile(IPosition &cacheLoc, const IPosition &tileLoc, Bool discard=True)
Return the tile for a given location.
virtual void clearCacheStatistics()
Clear the statistics of cache access.
Block< Int > tileSequence
Block< Array< T > > tileContents
IPosition & cacheLocation(IPosition &cacheLoc, const IPosition &tileLoc)
Return the IPosition for the start of this tile.
Int getFreeTile(Bool readonly)