28 #ifndef LATTICES_PAGEDARRAY_H
29 #define LATTICES_PAGEDARRAY_H
566 virtual void flush();
635 return itsColumnName;
677 #ifndef CASACORE_NO_AUTO_TEMPLATES
678 #include <casacore/lattices/Lattices/PagedArray.tcc>
679 #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 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 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 T getAt(const IPosition &where) const
Return the value of the single element located at the argument IPosition.
Main interface class to a read/write table.
void makeArray(const TiledShape &shape)
make the ArrayColumn
void setTableType()
Set the data in the TableInfo file.
virtual Bool isWritable() const
Is the PagedArray writable?
static String defaultColumn()
Returns the default TableColumn name for a PagedArray.
virtual Bool ok() const
A function which checks for internal consistency.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
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.
virtual Bool hasLock(FileLocker::LockType) const
virtual IPosition shape() const
Returns the shape of the PagedArray.
uInt rowNumber() const
Returns the current row number of this PagedArray.
virtual void showCacheStatistics(ostream &os) const
Generate a report on how the cache is doing.
const String & columnName() const
Returns the current Table column name of this PagedArray.
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.
virtual uInt maximumCacheSize() const
Return the maximum allowed cache size (in pixels) for all Arrays in this column of the Table...
virtual Bool isPaged() const
A PagedArray is always paged to disk.
A templated, abstract base class for array-like objects.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
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...
const String & tableName() const
Returns the current table name (ie.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
Table & table()
Return the current table object.
PagedArray< T > & operator=(const PagedArray< T > &other)
The assignment operator with reference semantics.
ArrayColumn< T > & getRWArray()
Get the writable ArrayColumn object.
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).
virtual String name(Bool stripPath=False) const
Return the current Table name.
virtual Bool isPersistent() const
A PagedArray is always persistent.
Class to hold table lock options.
ArrayColumn< T > itsArray
virtual void clearCache()
Clears and frees up the tile cache.
Specify which elements to extract from an n-dimensional array.
IPosition tileShape() const
Returns the current tile shape for this PagedArray.
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
String: the storage and methods of handling collections of characters.
static String defaultComment()
The default comment for PagedArray Colums.
void doReopen() const
Do the reopen of the table (if not open already).
virtual void resync()
Resynchronize the PagedArray object with the lattice file.
LockType
Define the possible lock types.
Give access to some TiledStMan functions.
virtual void reopen()
Explicitly reopen the temporarily closed lattice.
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.
const ROTiledStManAccessor & accessor() const
Returns an accessor to the tiled storage manager.
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.