28 #ifndef TABLES_VIRTARRCOL_H 29 #define TABLES_VIRTARRCOL_H 32 #include <casacore/casa/aips.h> 33 #include <casacore/tables/DataMan/DataManager.h> 38 template<
class T>
class Array;
314 const Slicer& slicer,
void* dataPtr);
320 const void* dataPtr);
336 #ifndef CASACORE_NO_AUTO_TEMPLATES 337 #include <casacore/tables/DataMan/VirtArrCol.tcc> 338 #endif //# CASACORE_NO_AUTO_TEMPLATES A Vector of integers, for indexing into Array<T> objects.
void putSliceV(uInt rownr, const Slicer &slicer, const void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
virtual String dataTypeId() const
Return the data type Id of the column.
void putArrayColumnCellsV(const RefRows &rownrs, const void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
void getArrayColumnCellsV(const RefRows &rownrs, void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
void getColumnSliceV(const Slicer &slicer, void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
virtual void getArrayColumn(Array< T > &data)
Get an entire column.
VirtualArrayColumn()
Create a column.
Abstract base class for a column in a data manager.
Templated base class for virtual array column.
virtual IPosition shape(uInt rownr)
Get the shape of the item in the given row.
void putColumnSliceV(const Slicer &slicer, const void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
void getArrayColumnV(void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
void getSliceV(uInt rownr, const Slicer &slicer, void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
virtual void getColumnSlice(const Slicer &slicer, Array< T > &data)
Get a section of all arrays in the column.
virtual void putColumnSliceCellsV(const RefRows &rownrs, const Slicer &slicer, const void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
virtual Bool canAccessColumnSlice(Bool &reask) const
The class can handle a get/putColumnSlice.
virtual ~VirtualArrayColumn()
Frees up the storage.
virtual void putColumnSlice(const Slicer &slicer, const Array< T > &data)
Put a section of all arrays in the column.
virtual Bool canAccessArrayColumn(Bool &reask) const
The class can handle a get/putArrayColumn.
virtual void setShapeColumn(const IPosition &shape)
Set the shape of all arrays in the column.
virtual void getColumnSliceCellsV(const RefRows &rownrs, const Slicer &slicer, void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
virtual void putArrayColumnCells(const RefRows &rownrs, const Array< T > &data)
Put some array values in the column.
void getArrayV(uInt rownr, void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
Class holding the row numbers in a RefTable.
virtual uInt ndim(uInt rownr)
Get the dimensionality of the item in the given row.
virtual void putArray(uInt rownr, const Array< T > &data)
Put the array value into the given row.
bool Bool
Define the standard types used by Casacore.
VirtualArrayColumn< T > & operator=(const VirtualArrayColumn< T > &)
The object cannot be assigned to.
void putArrayV(uInt rownr, const void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
virtual Bool isShapeDefined(uInt rownr)
Is the value shape defined in the given row? By default it throws a "not possible" exception...
virtual void getArrayColumnCells(const RefRows &rownrs, Array< T > &data)
Get some array values in the column.
template <class T, class U> class vector;
void putArrayColumnV(const void *dataPtr)
Implement the virtual functions defined in DataManagerColumn.
virtual void putColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, const Array< T > &data)
Put into a section of some arrays in the column.
Specify which elements to extract from an n-dimensional array.
virtual void getArray(uInt rownr, Array< T > &data)=0
Get the array value in the given row.
virtual void putSlice(uInt rownr, const Slicer &slicer, const Array< T > &data)
Put into a section of the array in the given row.
virtual void putArrayColumn(const Array< T > &data)
Put an entire column.
virtual Bool canAccessSlice(Bool &reask) const
The class can handle a get/putSlice.
String: the storage and methods of handling collections of characters.
virtual int dataType() const
Return the data type of the column.
virtual void setShape(uInt rownr, const IPosition &shape)
Set the shape of an array in the given row.
virtual void getSlice(uInt rownr, const Slicer &slicer, Array< T > &data)
Get a section of the array in the given row.
virtual void getColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, Array< T > &data)
Get a section of some arrays in the column.
this file contains all the compiler specific defines
virtual Bool isWritable() const
By default no data can be put in a virtual column.