26#ifndef LATTICES_LATTICECACHE_H
27#define LATTICES_LATTICECACHE_H
30#include <casacore/casa/aips.h>
31#include <casacore/casa/Arrays/Array.h>
32#include <casacore/casa/Arrays/Vector.h>
33#include <casacore/casa/Containers/Block.h>
36#include <casacore/casa/iosfwd.h>
159#ifndef CASACORE_NO_AUTO_TEMPLATES
160#include <casacore/lattices/Lattices/LatticeCache.tcc>
Block< IPosition > tileLocs
const Array< T > & tile(const IPosition &tileLoc)
const version is needed
Vector< Float > tileOverlap
virtual void clearCacheStatistics()
Clear the statistics of cache access.
virtual void showCacheStatistics(std::ostream &os)
Show the statistics of cache access.
Array< T > & tile(IPosition &cacheLoc, const IPosition &tileLoc, Bool discard=True)
Return the tile for a given location.
IPosition & cacheLocation(IPosition &cacheLoc, const IPosition &tileLoc)
Return the IPosition for the start of this tile.
LatticeCache(Lattice< T > &image, Int cacheSize, IPosition tileShape, Vector< Float > &tileOverlap, Bool additive)
Constructor: cachesize in units of T.
Vector< Int > tileOffsetVec
Block< Array< T > > tileContents
LatticeCache< T > & operator=(const LatticeCache< T > &other)
Block< Int > tileSequence
Vector< Int > tileShapeVec
Array< T > & tile(const IPosition &tileLoc, Bool discard=True)
Int getFreeTile(Bool readonly)
void readTile(Int tile, Bool readonly)
LatticeCache(const LatticeCache< T > &other)
virtual void flush()
Flush contents.
For temporary backward namespace compatibility, use casa as alias for casacore.
bool Bool
Define the standard types used by Casacore.