28 #ifndef TABLES_SCALARCOLUMN_H
29 #define TABLES_SCALARCOLUMN_H
84 class ScalarColumn :
public TableColumn
119 ScalarColumn<T>&
operator= (
const ScalarColumn<T>&);
207 {
put (rownr, that, rownr); }
220 {
put (rownr, that, rownr); }
260 extern template class ScalarColumn<Bool>;
261 extern template class ScalarColumn<Char>;
262 extern template class ScalarColumn<Short>;
263 extern template class ScalarColumn<uShort>;
264 extern template class ScalarColumn<Int>;
265 extern template class ScalarColumn<uInt>;
266 extern template class ScalarColumn<Int64>;
267 extern template class ScalarColumn<Float>;
268 extern template class ScalarColumn<Double>;
269 extern template class ScalarColumn<Complex>;
270 extern template class ScalarColumn<DComplex>;
271 extern template class ScalarColumn<String>;
278 #define ROScalarColumn ScalarColumn
281 #ifndef CASACORE_NO_AUTO_TEMPLATES
282 #include <casacore/tables/Tables/ScalarColumn.tcc>
283 #endif //# CASACORE_NO_AUTO_TEMPLATES
void fillColumn(const T &value)
Put the same value in all cells of the column.
#define TABLECOLUMNCHECKROW(ROWNR)
void put(rownr_t rownr, const T &value)
Put the value in a particular cell (i.e.
Main interface class to a read/write table.
T operator()(rownr_t rownr) const
TableColumn()
The default constructor creates a null object, i.e.
BaseColumn * baseColPtr_p
virtual TableColumn * clone() const
Clone the object.
void checkDataType() const
Check if the data type matches the column data type.
void checkWritable() const
Check if the column is writable and throw an exception if not.
Table table() const
Get the Table object this column belongs to.
void attach(const Table &table, const String &columnName)
Attach a column to the object.
void reference(const ScalarColumn< T > &)
Change the reference to another column.
void getColumnRange(const Slicer &rowRange, Vector< T > &vec, Bool resize=False) const
Get the vector of a range of values in the column.
Class holding the row numbers in a RefTable.
const ColumnCache * colCachePtr_p
bool Bool
Define the standard types used by Casacore.
Read/write access to a table column.
Specify which elements to extract from an n-dimensional array.
uInt64 rownr_t
Define the type of a row number in a table.
const void * dataPtr() const
Give a pointer to the data.
void putColumn(const Vector< T > &vec)
Put the vector of all values in the column.
virtual void put(rownr_t rownr, const void *dataPtr)
Put the scalar value in a particular cell.
ScalarColumn< T > & operator=(const ScalarColumn< T > &)
Assignment uses reference semantics, thus works the same as function reference.
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.
Int64 offset(rownr_t rownr) const
Calculate the offset in the cached data for the given row.
void putColumnRange(const Slicer &rowRange, const Vector< T > &vec)
Put the vector of a range of values in the column.
virtual void get(rownr_t rownr, void *dataPtr) const
Get a scalar value from a particular cell.
String: the storage and methods of handling collections of characters.
Access to a scalar table column with arbitrary data type.
ScalarColumn()
The default constructor creates a null object, i.e.
Vector< T > getColumn() const
Get the vector of all values in the column.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void putColumnCells(const RefRows &rownrs, const Vector< T > &vec)
Put the vector of some values in the column.
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 getColumnCells(const RefRows &rownrs, Vector< T > &vec, Bool resize=False) const
Get the vector of some values in the column.