28 #ifndef TABLES_SCALARCOLUMN_H 29 #define TABLES_SCALARCOLUMN_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/tables/Tables/TableColumn.h> 35 #include <casacore/tables/Tables/ColumnCache.h> 42 template<
class T>
class Vector;
84 class ScalarColumn :
public TableColumn
119 ScalarColumn<T>&
operator= (
const ScalarColumn<T>&);
207 {
put (rownr, that, rownr); }
220 {
put (rownr, that, rownr); }
285 #define ROScalarColumn ScalarColumn 288 #ifndef CASACORE_NO_AUTO_TEMPLATES 289 #include <casacore/tables/Tables/ScalarColumn.tcc> 290 #endif //# CASACORE_NO_AUTO_TEMPLATES A 1-D Specialization of the Array class.
void fillColumn(const T &value)
Put the same value in all cells of the column.
#define TABLECOLUMNCHECKROW(ROWNR)
Main interface class to a read/write table.
void put(uInt rownr, const TableColumn &that, Bool=False)
Copy the value of a cell of that column to a cell of this column.
TableColumn()
The default constructor creates a null object, i.e.
BaseColumn * baseColPtr_p
Int offset(uInt rownr) const
Calculate the offset in the cached data for the given row.
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 checkDataType() const
Check if the data type matches the column data type.
Table table() const
Get the Table object this column belongs to.
virtual TableColumn * clone() const
Clone the object.
void checkWritable() const
Check if the column is writable and throw an exception if not.
Class holding the row numbers in a RefTable.
const ColumnCache * colCachePtr_p
void getColumnRange(const Slicer &rowRange, Vector< T > &vec, Bool resize=False) const
Get the vector of a range of values in the column.
T operator()(uInt rownr) const
bool Bool
Define the standard types used by Casacore.
Vector< T > getColumn() const
Get the vector of all values in the column.
Read/write access to a table column.
Bool canAccessColumn_p
Keep a switch to determine if an entire column can be accessed.
Specify which elements to extract from an n-dimensional array.
void getColumnCells(const RefRows &rownrs, Vector< T > &vec, Bool resize=False) const
Get the vector of some values in the column.
void put(uInt rownr, const ScalarColumn< T > &that)
Copy the value of a cell of that column to a cell of this column.
void putColumn(const Vector< T > &vec)
Put the vector of all values in the column.
virtual void get(uInt rownr, void *dataPtr) const =0
Get the value from a particular cell.
void put(uInt rownr, const T &value)
Put the value in a particular cell (i.e.
ScalarColumn< T > & operator=(const ScalarColumn< T > &)
Assignment uses reference semantics, thus works the same as function reference.
void putColumnRange(const Slicer &rowRange, const Vector< T > &vec)
Put the vector of a range of values in the column.
String: the storage and methods of handling collections of characters.
const void * dataPtr() const
Give a pointer to the data.
Access to a scalar table column with arbitrary data type.
ScalarColumn()
The default constructor creates a null object, i.e.
Bool reaskAccessColumn_p
Keep a switch to know if access knowledge is permanent or has to be asked again the next time...
virtual void put(uInt rownr, const void *dataPtr)=0
Put the value in a particular cell.
this file contains all the compiler specific defines
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.