26#ifndef TABLES_TSMCUBEMMAP_H
27#define TABLES_TSMCUBEMMAP_H
31#include <casacore/casa/aips.h>
32#include <casacore/tables/DataMan/TSMCube.h>
141 char* section,
uInt colnr,
142 uInt localPixelSize,
uInt externalPixelSize,
149 char* section,
uInt colnr,
150 uInt localPixelSize,
uInt externalPixelSize,
virtual void setShape(const IPosition &cubeShape, const IPosition &tileShape)
Set the hypercube shape.
BucketMapped * cache_p
The bucket cache.
virtual void showCacheStatistics(ostream &os) const
Show the cache statistics.
virtual void extend(uInt64 nr, const Record &coordValues, const TSMColumn *lastCoordColumn)
Extend the last dimension of the cube with the given number.
virtual void setCacheSize(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath, Bool forceSmaller, Bool userSet)
Set the cache size for the given slice and access path.
virtual void resyncCache()
Resync the cache object.
TSMCubeMMap(TiledStMan *stman, AipsIO &ios)
Reconstruct the hypercube by reading its data from the AipsIO stream.
TSMCubeMMap(TiledStMan *stman, TSMFile *file, const IPosition &cubeShape, const IPosition &tileShape, const Record &values, Int64 fileOffset)
Construct the hypercube using the given file with the given shape.
virtual void flushCache()
Flush the data in the cache.
virtual void accessStrided(const IPosition &start, const IPosition &end, const IPosition &stride, char *section, uInt colnr, uInt localPixelSize, uInt externalPixelSize, Bool writeFlag)
Read or write a section in a strided way.
BucketMapped * getCache()
Get the cache object.
virtual void accessSection(const IPosition &start, const IPosition &end, char *section, uInt colnr, uInt localPixelSize, uInt externalPixelSize, Bool writeFlag)
Read or write a section in the cube.
virtual void makeCache()
Construct the cache object (if not constructed yet).
virtual void deleteCache()
Delete the cache object.
TSMCubeMMap & operator=(const TSMCubeMMap &)=delete
Forbid assignment.
virtual void setCacheSize(uInt cacheSize, Bool forceSmaller, Bool userSet)
Resize the cache object.
TSMCubeMMap(const TSMCubeMMap &)=delete
Forbid copy constructor.
uInt cacheSize() const
Get the current cache size (in buckets).
const IPosition & tileShape() const
Get the shape of the tiles.
const IPosition & cubeShape() const
Get the shape of the hypercube.
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
unsigned long long uInt64