28 #ifndef LATTICES_PAGEDARRAY_H 29 #define LATTICES_PAGEDARRAY_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/lattices/Lattices/Lattice.h> 34 #include <casacore/lattices/Lattices/TiledShape.h> 35 #include <casacore/tables/Tables/ArrayColumn.h> 36 #include <casacore/tables/Tables/Table.h> 37 #include <casacore/tables/DataMan/TiledStManAccessor.h> 38 #include <casacore/casa/BasicSL/String.h> 566 virtual void flush();
674 #ifndef CASACORE_NO_AUTO_TEMPLATES 675 #include <casacore/lattices/Lattices/PagedArray.tcc> 676 #endif //# CASACORE_NO_AUTO_TEMPLATES virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
A Vector of integers, for indexing into Array<T> objects.
virtual void setCacheSizeFromPath(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath)
Set the actual cache size for this Array to "fit" the indicated path.
static uInt defaultRow()
Returns the default row number for a PagedArray.
virtual void showCacheStatistics(ostream &os) const
Generate a report on how the cache is doing.
Main interface class to a read/write table.
uInt rowNumber() const
Returns the current row number of this PagedArray.
void makeArray(const TiledShape &shape)
make the ArrayColumn
void setTableType()
Set the data in the TableInfo file.
static String defaultColumn()
Returns the default TableColumn name for a PagedArray.
virtual String name(Bool stripPath=False) const
Return the current Table name.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
virtual Bool isPersistent() const
A PagedArray is always persistent.
PagedArray()
The default constructor creates a PagedArray that is useless for just about everything, except that it can be assigned to with the assignment operator.
void makeTable(const String &filename, Table::TableOption option)
Make a Table to hold this PagedArray.
const ROTiledStManAccessor & accessor() const
Returns an accessor to the tiled storage manager.
void doReopen() const
Do the reopen of the table (if not open already).
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
This function is used by the LatticeIterator class to generate an iterator of the correct type for a ...
virtual void setMaximumCacheSize(uInt howManyPixels)
Set the maximum allowed cache size for all Arrays in this column of the Table.
A base class for Lattice iterators.
Define the shape and tile shape.
const String & columnName() const
Returns the current Table column name of this PagedArray.
A templated, abstract base class for array-like objects.
virtual Bool ok() const
A function which checks for internal consistency.
virtual void tempClose()
Temporarily close the lattice.
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be big enough for the indicated number of tiles...
Table & table()
Return the current table object.
PagedArray< T > & operator=(const PagedArray< T > &other)
The assignment operator with reference semantics.
virtual T getAt(const IPosition &where) const
Return the value of the single element located at the argument IPosition.
ArrayColumn< T > & getRWArray()
Get the writable ArrayColumn object.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
bool Bool
Define the standard types used by Casacore.
Read and write access to an array table column with arbitrary data type.
virtual void flush()
Flush the data (but do not unlock).
Class to hold table lock options.
template <class T, class U> class vector;
ArrayColumn< T > itsArray
virtual void clearCache()
Clears and frees up the tile cache.
virtual Bool isPaged() const
A PagedArray is always paged to disk.
Specify which elements to extract from an n-dimensional array.
const String & tableName() const
Returns the current table name (ie.
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
virtual IPosition shape() const
Returns the shape of the PagedArray.
virtual uInt maximumCacheSize() const
Return the maximum allowed cache size (in pixels) for all Arrays in this column of the Table...
String: the storage and methods of handling collections of characters.
static String defaultComment()
The default comment for PagedArray Colums.
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
IPosition tileShape() const
Returns the current tile shape for this PagedArray.
virtual void resync()
Resynchronize the PagedArray object with the lattice file.
virtual Bool isWritable() const
Is the PagedArray writable?
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
LockType
Define the possible lock types.
void reopenRW()
Try to reopen the table for read/write access.
Give access to some TiledStMan functions.
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
virtual Bool hasLock(FileLocker::LockType) const
this file contains all the compiler specific defines
void resize(const TiledShape &newShape)
Functions to resize the PagedArray.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
ROTiledStManAccessor itsAccessor
Abstract base class to steer lattice iterators.
A Lattice that is read from or written to disk.
TableOption
Define the possible options how a table can be opened.
~PagedArray()
The destructor flushes the PagedArrays contents to disk.
virtual Bool lock(FileLocker::LockType, uInt nattempts)
Handle the (un)locking.