Go to the documentation of this file.
28 #ifndef LATTICES_LATTICECACHE_H
29 #define LATTICES_LATTICECACHE_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/Array.h>
35 #include <casacore/casa/Arrays/Vector.h>
38 #include <casacore/casa/iosfwd.h>
41 template <
class T>
class Block;
42 template <
class T>
class Lattice;
162 #ifndef CASACORE_NO_AUTO_TEMPLATES
163 #include <casacore/lattices/Lattices/LatticeCache.tcc>
164 #endif //# CASACORE_NO_AUTO_TEMPLATES
IPosition & cacheLocation(IPosition &cacheLoc, const IPosition &tileLoc)
Return the IPosition for the start of this tile.
A Vector of integers, for indexing into Array<T> objects.
Int getFreeTile(Bool readonly)
Block< Array< T > > tileContents
virtual void clearCacheStatistics()
Clear the statistics of cache access.
a class for caching image access via tiles
Array< T > & tile(IPosition &cacheLoc, const IPosition &tileLoc, Bool discard=True)
Return the tile for a given location.
LatticeCache< T > & operator=(const LatticeCache< T > &other)
Vector< Float > tileOverlap
LatticeCache(Lattice< T > &image, Int cacheSize, IPosition tileShape, Vector< Float > &tileOverlap, Bool additive)
Constructor: cachesize in units of T.
virtual void showCacheStatistics(ostream &os)
Show the statistics of cache access.
Block< Int > tileSequence
const Array< T > & tile(const IPosition &tileLoc)
const version is needed
Vector< Int > tileOffsetVec
this file contains all the compiler specific defines
virtual void flush()
Flush contents.
Vector< Int > tileShapeVec
void readTile(Int tile, Bool readonly)
A templated, abstract base class for array-like objects.
Block< IPosition > tileLocs
template <class T, class U> class vector;
bool Bool
Define the standard types used by Casacore.
LatticeCache(const LatticeCache< T > &other)
Array< T > & tile(const IPosition &tileLoc, Bool discard=True)