28 #ifndef TABLES_SCALEDCOMPLEXDATA_H
29 #define TABLES_SCALEDCOMPLEXDATA_H
39 template<
class T>
class ScalarColumn;
147 template<
class VirtualType,
class StoredType>
166 const String& storedColumnName,
168 VirtualType offset = 0);
182 const String& storedColumnName,
183 const String& scaleColumnName,
184 VirtualType offset = 0);
186 const String& storedColumnName,
187 const String& scaleColumnName,
188 const String& offsetColumnName);
327 void scaleOnGet (VirtualType scale, VirtualType offset,
334 void scaleOnPut (VirtualType scale, VirtualType offset,
406 #ifndef CASACORE_NO_AUTO_TEMPLATES
407 #include <casacore/tables/DataMan/ScaledComplexData.tcc>
408 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
virtual void putArray(rownr_t rownr, const Array< VirtualType > &array)
Put an array in the given row.
void scaleOnGet(VirtualType scale, VirtualType offset, Array< VirtualType > &array, const Array< StoredType > &stored)
Scale and/or offset stored to array.
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
Define the "constructor" to construct this engine when a table is read back.
virtual void prepare()
Preparing consists of setting the writable switch and adding the initial number of rows in case of cr...
virtual void putColumnSlice(const Slicer &slicer, const Array< VirtualType > &array)
Put a section of all arrays in the column.
void scaleColumnOnPut(const Array< VirtualType > &array, Array< StoredType > &stored)
Scale and/or offset array to stored for the entire column.
IPosition concatenate(const IPosition &other) const
Return an IPosition as the concetanation of this and another IPosition.
virtual void setShape(rownr_t rownr, const IPosition &shape)
Define the shape of the array in the given row.
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
Templated virtual column engine for a table array of any type.
ScalarColumn< VirtualType > * offsetColumn_p
virtual uInt ndim(rownr_t rownr)
Get the dimensionality of the array in the given row.
VirtualType getScale(rownr_t rownr)
Get the scale value for this row.
virtual IPosition shape(rownr_t rownr)
Get the shape of the array in the given row.
~ScaledComplexData()
Destructor is mandatory.
virtual void getArrayColumn(Array< VirtualType > &array)
Get an entire column.
void scaleOnPut(VirtualType scale, VirtualType offset, const Array< VirtualType > &array, Array< StoredType > &stored)
Scale and/or offset array to stored.
virtual void putColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, const Array< VirtualType > &data)
Put into a section of some arrays in the column.
Slicer storedSlicer(const Slicer &virtualSlicer) const
Convert the Slicer for a virtual to a Slicer for the stored.
virtual void putArrayColumn(const Array< VirtualType > &array)
Put an entire column.
virtual void getSlice(rownr_t rownr, const Slicer &slicer, Array< VirtualType > &array)
Get a section of the array in the given row.
Class holding the row numbers in a RefTable.
String dataManagerType() const
Return the type name of the engine (i.e.
IPosition storedShape(const IPosition &virtualShape) const
Determine the shape of an array in the stored column.
void scaleColumnOnGet(Array< VirtualType > &array, const Array< StoredType > &stored)
Scale and/or offset stored to array for the entire column.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual void getColumnSlice(const Slicer &slicer, Array< VirtualType > &array)
Get a section of all arrays in the column.
void scaleCellsOnGet(Array< VirtualType > &array, const Array< StoredType > &stored, const RefRows &rownrs)
Scale and/or offset stored to array for some cells in the column.
ScaledComplexData()
The default constructor is required for reconstruction of the engine when a table is read back...
Templated virtual column engine to scale a complex table array.
virtual DataManager * clone() const
Clone the engine object.
virtual void putArrayColumnCells(const RefRows &rownrs, const Array< VirtualType > &data)
Put some array values in the column.
A templated N-D Array class with zero origin. Array<T, Alloc> is a templated, N-dimensional, Array class. The origin is zero, but by default indices are zero-based. This Array class is the base class for the Vector, Matrix, and Cube subclasses.
static String className()
Return the name of the class.
virtual void getColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, Array< VirtualType > &data)
Get a section of some arrays in the column.
Specify which elements to extract from an n-dimensional array.
virtual void getArrayColumnCells(const RefRows &rownrs, Array< VirtualType > &data)
Get some array values in the column.
ScalarColumn< VirtualType > * scaleColumn_p
static void registerClass()
Register the class name and the static makeObject "constructor".
uInt64 rownr_t
Define the type of a row number in a table.
virtual void putSlice(rownr_t rownr, const Slicer &slicer, const Array< VirtualType > &array)
Put into a section of the array in the given row.
virtual void create64(rownr_t initialNrrow)
Initialize the object for a new table.
Abstract base class for a data manager.
void scaleCellsOnPut(const Array< VirtualType > &array, Array< StoredType > &stored, const RefRows &rownrs)
Scale and/or offset array to stored for some cells in the column.
virtual Record dataManagerSpec() const
Record a record containing data manager specifications.
String: the storage and methods of handling collections of characters.
virtual void getArray(rownr_t rownr, Array< VirtualType > &array)
Get an array in the given row.
virtual void setShapeColumn(const IPosition &shape)
Set the shape of the FixedShape arrays in the column.
VirtualType getOffset(rownr_t rownr)
Get the offset value for this row.