26#ifndef LATTICES_LATTICECACHE_H
27#define LATTICES_LATTICECACHE_H
31#include <casacore/casa/aips.h>
32#include <casacore/casa/Arrays/Array.h>
33#include <casacore/casa/Arrays/Vector.h>
34#include <casacore/casa/Containers/Block.h>
37#include <casacore/casa/iosfwd.h>
40template <
class T>
class Block;
41template <
class T>
class Lattice;
161#ifndef CASACORE_NO_AUTO_TEMPLATES
162#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.
Array< T > & tile(IPosition &cacheLoc, const IPosition &tileLoc, Bool discard=True)
Return the tile for a given location.
virtual void showCacheStatistics(ostream &os)
Show the statistics of cache access.
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.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.