28 #ifndef TABLES_SCALARCOLUMN_H
29 #define TABLES_SCALARCOLUMN_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/ArrayFwd.h>
35 #include <casacore/tables/Tables/TableColumn.h>
36 #include <casacore/tables/Tables/ColumnCache.h>
207 {
put (rownr, that, rownr); }
220 {
put (rownr, that, rownr); }
278 #define ROScalarColumn ScalarColumn
281 #ifndef CASACORE_NO_AUTO_TEMPLATES
282 #include <casacore/tables/Tables/ScalarColumn.tcc>
#define TABLECOLUMNCHECKROW(ROWNR)
virtual void get(rownr_t rownr, void *dataPtr) const
Get a scalar value from a particular cell.
virtual void put(rownr_t rownr, const void *dataPtr)
Put the scalar value in a particular cell.
Int64 offset(rownr_t rownr) const
Calculate the offset in the cached data for the given row.
const void * dataPtr() const
Give a pointer to the data.
Vector< T > getColumnRange(const Slicer &rowRange) const
Get the vector of a range of values in the column.
void put(rownr_t thisRownr, const TableColumn &that, rownr_t thatRownr, Bool=False)
Use possibly different row numbers for that (i.e.
ScalarColumn()
The default constructor creates a null object, i.e.
Vector< T > getColumn() const
Get the vector of all values in the column.
ScalarColumn< T > & operator=(const ScalarColumn< T > &)
Assignment uses reference semantics, thus works the same as function reference.
void put(rownr_t rownr, const T &value)
Put the value in a particular cell (i.e.
ScalarColumn(const ScalarColumn< T > &)
Copy constructor (reference semantics).
void put(rownr_t rownr, const ScalarColumn< T > &that)
Copy the value of a cell of that column to a cell of this column.
void get(rownr_t rownr, T &value) const
Get the data from a particular cell (i.e.
void checkDataType() const
Check if the data type matches the column data type.
void fillColumn(const T &value)
Put the same value in all cells of the column.
void putColumnCells(const RefRows &rownrs, const Vector< T > &vec)
Put the vector of some values in the column.
void put(rownr_t rownr, const TableColumn &that, Bool=False)
Copy the value of a cell of that column to a cell of this column.
ScalarColumn(const Table &, const String &columnName)
Construct for the given column in the given table.
T get(rownr_t rownr) const
void putColumnRange(const Slicer &rowRange, const Vector< T > &vec)
Put the vector of a range of values in the column.
Vector< T > getColumnCells(const RefRows &rownrs) const
Get the vector of some values in the column.
void getColumnRange(const Slicer &rowRange, Vector< T > &vec, Bool resize=False) const
Get the vector of a range of values in the column.
void attach(const Table &table, const String &columnName)
Attach a column to the object.
void putColumn(const Vector< T > &vec)
Put the vector of all values in the column.
void put(rownr_t thisRownr, const ScalarColumn< T > &that, rownr_t thatRownr)
Use possibly different row numbers for that (i.e.
void getColumn(Vector< T > &vec, Bool resize=False) const
Get the vector of all values in the column.
virtual TableColumn * clone() const
Clone the object.
ScalarColumn(const TableColumn &)
Construct from the given table column.
void putColumn(const ScalarColumn< T > &that)
Put the contents of a column with the same data type into this column.
void reference(const ScalarColumn< T > &)
Change the reference to another column.
T operator()(rownr_t rownr) const
void getColumnCells(const RefRows &rownrs, Vector< T > &vec, Bool resize=False) const
Get the vector of some values in the column.
String: the storage and methods of handling collections of characters.
const ColumnCache * colCachePtr_p
void checkWritable() const
Check if the column is writable and throw an exception if not.
BaseColumn * baseColPtr_p
Table table() const
Get the Table object this column belongs to.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
uInt64 rownr_t
Define the type of a row number in a table.