28 #ifndef TABLES_CONCATCOLUMN_H 29 #define TABLES_CONCATCOLUMN_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/tables/Tables/BaseColumn.h> 35 #include <casacore/tables/Tables/ColumnCache.h> 36 #include <casacore/tables/Tables/TableRecord.h> 46 template<
class T>
class Vector;
172 virtual void get (
uInt rownr,
void* dataPtr)
const;
179 virtual void put (
uInt rownr,
const void* dataPtr);
198 void* dataPtr)
const;
204 const Slicer&,
void* dataPtr)
const;
220 const void* dataPtr);
226 const Slicer&,
const void* dataPtr);
237 virtual void allocIterBuf (
void*& lastVal,
void*& curVal,
241 virtual void freeIterBuf (
void*& lastVal,
void*& curVal);
virtual TableRecord & rwKeywordSet()
Get access to the column keyword set.
A Vector of integers, for indexing into Array<T> objects.
virtual void freeIterBuf(void *&lastVal, void *&curVal)
Free the value buffers allocated by allocIterBuf.
virtual void putArrayColumn(const void *dataPtr)
Put the array of all array values in the column.
virtual void putColumnSliceCells(const RefRows &rownrs, const Slicer &, const void *dataPtr)
Put subsections of some arrays in the column.
Non-templated base class for templated Array class.
ConcatColumn(const BaseColumnDesc *, ConcatTable *)
Construct the ConcatColumn.
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...
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
virtual void putColumnSlice(const Slicer &, const void *dataPtr)
Put into subsections of all table arrays in the column.
virtual uInt ndimColumn() const
Get the global #dimensions of an array (i.e.
An abstract base class for table column descriptions.
virtual void getArrayColumnCells(const RefRows &rownrs, void *dataPtr) const
Get the array of some array values in a column.
virtual IPosition shape(uInt rownr) const
Get the shape of an array in a particular cell.
virtual void getSlice(uInt rownr, const Slicer &, void *dataPtr) const
Get a slice of an N-dimensional array in a particular cell.
virtual void putArrayColumnCells(const RefRows &rownrs, const void *dataPtr)
Get the array of some array values in a column.
static void putColumnPart(BaseColumn *col, const Slicer *, ArrayBase *arr)
virtual TableRecord & keywordSet()
virtual uInt nrow() const
Get nr of rows in the column.
virtual Bool isStored() const
Test if the column is stored (otherwise it is virtual).
static void getRowsPart(BaseColumn *col, const RefRows &rows, const Slicer *, ArrayBase *array)
virtual void setMaximumCacheSize(uInt nbytes)
Set the maximum cache size (in bytes) to be used by a storage manager.
static void getColumnSlicePart(BaseColumn *col, const Slicer *ns, ArrayBase *arr)
virtual IPosition shapeColumn() const
Get the global shape of an array (i.e.
virtual Bool canAccessSlice(Bool &reask) const
It can handle a cell slice if the underlying column can do it.
Referenced counted pointer for constant data.
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 canAccessArrayColumnCells(Bool &reask) const
It can handle cells in an array column if the underlying column can do it.
virtual void put(uInt rownr, const void *dataPtr)
Put the value in a particular cell.
static void putRowsSlicePart(BaseColumn *col, const RefRows &rows, const Slicer *, ArrayBase *array)
Block< BaseColumn * > refColPtr_p
static void putRowsPart(BaseColumn *col, const RefRows &rows, const Slicer *, ArrayBase *array)
Class holding the row numbers in a RefTable.
virtual void setShape(uInt rownr, const IPosition &shape)
Set the shape of the array in the given row.
void accessColumn(const Slicer *ns, void *dataPtr, AccessColumnFunc *) const
Access the data for an entire column.
virtual Bool canAccessArrayColumn(Bool &reask) const
It can handle an array column if the underlying column can handle cells in an array column...
bool Bool
Define the standard types used by Casacore.
A caching object for a table column.
static void putColumnSlicePart(BaseColumn *col, const Slicer *ns, ArrayBase *arr)
static void getColumnPart(BaseColumn *col, const Slicer *, ArrayBase *arr)
Define the access functions.
virtual void allocIterBuf(void *&lastVal, void *&curVal, CountedPtr< BaseCompare > &cmpObj)
Allocate value buffers for the table iterator.
void initialize(uInt startRownr, uInt endRownr)
Initialize the rows from startRownr till endRownr (inclusive) with the default value defined in the c...
A hierarchical collection of named fields of various types.
void AccessColumnFunc(BaseColumn *col, const Slicer *, ArrayBase *array)
Define the function to handle access to an entire column.
Specify which elements to extract from an n-dimensional array.
virtual Bool isWritable() const
Test if the column is writable in the parent table.
virtual Bool canChangeShape() const
It can change shape if the underlying column can.
virtual void putSlice(uInt rownr, const Slicer &, const void *dataPtr)
Put a slice of an N-dimensional array in a particular cell.
ConcatTable * refTabPtr_p
void setColumnCache(uInt tableNr, const ColumnCache &) const
Set the column cache to the cache of the given table.
virtual void getArrayColumn(void *dataPtr) const
Get the array of all array values in a column.
Class to view a concatenation of tables as a single table.
virtual ColumnCache & columnCache()
Get the underlying column cache.
static void getRowsSlicePart(BaseColumn *col, const RefRows &rows, const Slicer *, ArrayBase *array)
virtual Bool isDefined(uInt rownr) const
Test if a value in a particular cell has been defined.
A column in a concatenated table.
virtual uInt ndim(uInt rownr) const
Get the #dimensions of an array in a particular cell.
this file contains all the compiler specific defines
virtual Bool canAccessScalarColumnCells(Bool &reask) const
It can handle cells in a scalar column if the underlying column can do it.
virtual void getColumnSlice(const Slicer &, void *dataPtr) const
Get subsections from all arrays in the column.
void accessRows(const RefRows &rownrs, const Slicer *ns, void *dataPtr, AccessRowsFunc *) const
Access the data with multiple rows combined.
void AccessRowsFunc(BaseColumn *col, const RefRows &rows, const Slicer *, ArrayBase *array)
Define the function to handle access to a number of rows.
Abstract base class for a table column.
virtual void getColumnSliceCells(const RefRows &rownrs, const Slicer &, void *dataPtr) const
Get subsections from some arrays in the column.