Go to the documentation of this file.
28 #ifndef TABLES_ARRCOLDATA_H
29 #define TABLES_ARRCOLDATA_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/tables/Tables/PlainColumn.h>
34 #include <casacore/casa/Arrays/IPosition.h>
40 template<
class T>
class ArrayColumnDesc;
205 void* arrayPtr)
const;
244 const void* arrayPtr);
286 #ifndef CASACORE_NO_AUTO_TEMPLATES
287 #include <casacore/tables/Tables/ArrColData.tcc>
288 #endif //# CASACORE_NO_AUTO_TEMPLATES
void getSlice(uInt rownr, const Slicer &, void *arrayPtr) const
Get a slice of an N-dimensional array in a particular cell.
void setShape(uInt rownr, const IPosition &shape, const IPosition &tileShape)
The shape of tiles in the array can also be defined.
const ArrayColumnDesc< T > * arrDescPtr_p
Pointer to column description.
ArrayColumnData(const ArrayColumnDesc< T > *, ColumnSet *)
Construct an array column object from the given description in the given column set.
void getArrayColumn(void *arrayPtr) const
Get the array of all values in a column.
void getColumnSlice(const Slicer &, void *arrayPtr) const
Get subsections from all arrays in the column.
void setShape(uInt rownr, const IPosition &shape)
Set dimensions of array in a particular cell.
void putColumnSlice(const Slicer &, const void *arrayPtr)
Put into subsections of all table arrays in the column.
void putFileDerived(AipsIO &)
Write the column data.
IPosition tileShape(uInt rownr) const
Get the tile shape of an array in a particular cell.
void createDataManagerColumn()
Create a data manager column object for this column.
Bool isDefined(uInt rownr) const
Test if the given cell contains an array.
virtual Bool canAccessColumnSlice(Bool &reask) const
Ask if the data manager can handle a column slice.
IPosition shapeColumn() const
Get the global shape of an array (ie.
void put(uInt rownr, const void *arrayPtr)
Put the value in a particular cell.
void checkShape(const IPosition &shape) const
Check if the shape of an array can be set and if it is set correctly (i.e.
virtual Bool canAccessArrayColumn(Bool &reask) const
Ask if the data manager can handle a column.
void initialize(uInt startRownr, uInt endRownr)
Initialize the rows from startRownr till endRownr (inclusive) with the default value defined in the c...
IPosition shapeCol_p
Shape for all arrays in the column.
this file contains all the compiler specific defines
virtual Bool canAccessSlice(Bool &reask) const
Ask if the data manager can handle a cell slice.
ArrayColumnData(const ArrayColumnData< T > &)
Copy constructor cannot be used.
IPosition shape(uInt rownr) const
Get the shape of an array in a particular cell.
void putColumnSliceCells(const RefRows &rownrs, const Slicer &, const void *arrayPtr)
Put into subsections of some table arrays in the column.
Bool shapeColDef_p
Is the shape for all arrays in the columns defined.
ArrayColumnData< T > & operator=(const ArrayColumnData< T > &)
Assignment cannot be used.
void getFileDerived(AipsIO &, const ColumnSet &)
Read the column data back.
void get(uInt rownr, void *arrayPtr) const
Get the array from a particular cell.
void getColumnSliceCells(const RefRows &rownrs, const Slicer &, void *arrayPtr) const
Get subsections from some arrays in the column.
virtual Bool canChangeShape() const
Ask the data manager if the shape of an existing array can be changed.
void setShapeColumn(const IPosition &shape)
Set shape of all arrays in the column.
bool Bool
Define the standard types used by Casacore.
uInt ndim(uInt rownr) const
Get the #dimensions of an array in a particular cell.
void putArrayColumnCells(const RefRows &rownrs, const void *arrayPtr)
Put the array of some values in the column.
virtual Bool canAccessArrayColumnCells(Bool &reask) const
Ask if the data manager can handle some cells in a column.
void putSlice(uInt rownr, const Slicer &, const void *arrayPtr)
Put a slice of an N-dimensional array in a particular cell.
void getArrayColumnCells(const RefRows &rownrs, void *arrayPtr) const
Get the array of some values in a column.
void putArrayColumn(const void *arrayPtr)
Put the array of all values in the column.
uInt ndimColumn() const
Get the global #dimensions of an array (ie.