28 #ifndef TABLES_REFCOLUMN_H
29 #define TABLES_REFCOLUMN_H
45 template<
class T>
class Vector;
172 virtual void get (
uInt rownr,
void* dataPtr)
const;
192 void* dataPtr)
const;
198 void* dataPtr)
const;
204 const Slicer&,
void* dataPtr)
const;
208 virtual void put (
uInt rownr,
const void* dataPtr);
228 const void* dataPtr);
234 const void* dataPtr);
240 const Slicer&,
const void* dataPtr);
253 Int order,
const void*& dataSave);
262 virtual void allocIterBuf (
void*& lastVal,
void*& curVal,
266 virtual void freeIterBuf (
void*& lastVal,
void*& curVal);
RefColumn(const BaseColumnDesc *, RefTable *, BaseColumn *referencedColumn)
Construct the RefColumn.
A Vector of integers, for indexing into Array<T> objects.
virtual Bool canAccessScalarColumnCells(Bool &reask) const
It can handle cells in a scalar column if the underlying column can do it.
virtual void getColumnSliceCells(const RefRows &rownrs, const Slicer &, void *dataPtr) const
Get subsections from some arrays in the column.
virtual void put(uInt rownr, const void *dataPtr)
Put the value in a particular cell.
virtual void putArrayColumn(const void *dataPtr)
Put the array of all array values in the column.
std::vector< double > Vector
virtual void allocIterBuf(void *&lastVal, void *&curVal, CountedPtr< BaseCompare > &cmpObj)
Allocate value buffers for the table iterator.
virtual void putColumnSliceCells(const RefRows &rownrs, const Slicer &, const void *dataPtr)
Put subsections of some arrays in the column.
An abstract base class for table column descriptions.
virtual Bool canAccessSlice(Bool &reask) const
It can handle a cell slice if the underlying column can do it.
virtual Bool canChangeShape() const
It can change shape if the underlying column can.
virtual Bool canAccessColumnSlice(Bool &reask) const
It can handle a column slice if the underlying column can handle a collection of cells in a column an...
virtual TableRecord & keywordSet()
virtual TableRecord & rwKeywordSet()
Get access to the column keyword set.
virtual Bool canAccessArrayColumn(Bool &reask) const
It can handle an array column if the underlying column can handle cells in an array column...
virtual uInt nrow() const
Get nr of rows in the column.
virtual void freeSortKey(const void *&dataSave)
Free storage on the heap allocated by makeSortkey().
virtual uInt ndimColumn() const
Get the global #dimensions of an array (i.e.
virtual void getScalarColumn(void *dataPtr) const
Get the vector of all scalar values in a column.
virtual void getArrayColumnCells(const RefRows &rownrs, void *dataPtr) const
Get the array of some array values in a column.
virtual ColumnCache & columnCache()
Get the underlying column cache.
Sort on one or more keys, ascending and/or descending.
virtual void putScalarColumn(const void *dataPtr)
Put the vector of all scalar values in the column.
virtual void getScalarColumnCells(const RefRows &rownrs, void *dataPtr) const
Get the vector of some scalar values in a column.
virtual void setMaximumCacheSize(uInt nbytes)
Set the maximum cache size (in bytes) to be used by a storage manager.
virtual void setShape(uInt rownr, const IPosition &shape)
Set the shape of the array in the given row.
virtual void putArrayColumnCells(const RefRows &rownrs, const void *dataPtr)
Get the array of some array values in a column.
Referenced counted pointer for constant data.
virtual uInt ndim(uInt rownr) const
Get the #dimensions of an array in a particular cell.
Class for a table as a view of another table.
virtual Bool canAccessArrayColumnCells(Bool &reask) const
It can handle cells in an array column if the underlying column can do it.
Class holding the row numbers in a RefTable.
void initialize(uInt startRownr, uInt endRownr)
Initialize the rows from startRownr till endRownr (inclusive) with the default value defined in the c...
bool Bool
Define the standard types used by Casacore.
A caching object for a table column.
virtual void getArrayColumn(void *dataPtr) const
Get the array of all array values in a column.
A hierarchical collection of named fields of various types.
virtual void putScalarColumnCells(const RefRows &rownrs, const void *dataPtr)
Get the vector of some scalar values in a column.
Specify which elements to extract from an n-dimensional array.
virtual void getColumnSlice(const Slicer &, void *dataPtr) const
Get subsections from all arrays in the column.
virtual void makeSortKey(Sort &, CountedPtr< BaseCompare > &cmpObj, Int order, const void *&dataSave)
Add this column and its data to the Sort object.
virtual IPosition shape(uInt rownr) const
Get the shape of an array in a particular cell.
virtual Bool isStored() const
Test if the column is stored (otherwise it is virtual).
virtual Bool isDefined(uInt rownr) const
Test if a value in a particular cell has been defined.
virtual void putSlice(uInt rownr, const Slicer &, const void *dataPtr)
Put a slice of an N-dimensional array in a particular cell.
virtual void putColumnSlice(const Slicer &, const void *dataPtr)
Put into subsections of all table arrays in the column.
virtual void freeIterBuf(void *&lastVal, void *&curVal)
Free the value buffers allocated by allocIterBuf.
virtual void getSlice(uInt rownr, const Slicer &, void *dataPtr) const
Get a slice of an N-dimensional array in a particular cell.
virtual Bool canAccessScalarColumn(Bool &reask) const
It can handle a scalar column if the underlying column can handle cells in a scalar column...
virtual Bool isWritable() const
Test if the column is writable in the parent table.
virtual IPosition shapeColumn() const
Get the global shape of an array (i.e.
virtual IPosition tileShape(uInt rownr) const
Get the tile shape of an array in a particular cell.
A column in a reference table.
Abstract base class for a table column.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.