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>
36 #include <casacore/casa/Containers/Block.h>
39 #include <casacore/casa/iosfwd.h>
42 template <
class T>
class Block;
43 template <
class T>
class Lattice;
163 #ifndef CASACORE_NO_AUTO_TEMPLATES
164 #include <casacore/lattices/Lattices/LatticeCache.tcc>
Array< T > & tile(const IPosition &tileLoc, Bool discard=True)
Block< IPosition > tileLocs
IPosition & cacheLocation(IPosition &cacheLoc, const IPosition &tileLoc)
Return the IPosition for the start of this tile.
Vector< Float > tileOverlap
virtual void clearCacheStatistics()
Clear the statistics of cache access.
virtual void showCacheStatistics(ostream &os)
Show the statistics of cache access.
LatticeCache< T > & operator=(const LatticeCache< T > &other)
LatticeCache(Lattice< T > &image, Int cacheSize, IPosition tileShape, Vector< Float > &tileOverlap, Bool additive)
Constructor: cachesize in units of T.
const Array< T > & tile(const IPosition &tileLoc)
const version is needed
Vector< Int > tileOffsetVec
Block< Array< T > > tileContents
Block< Int > tileSequence
Vector< Int > tileShapeVec
Int getFreeTile(Bool readonly)
void readTile(Int tile, Bool readonly)
LatticeCache(const LatticeCache< T > &other)
Array< T > & tile(IPosition &cacheLoc, const IPosition &tileLoc, Bool discard=True)
Return the tile for a given location.
virtual void flush()
Flush contents.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.