Read/write access to a table column. More...
#include <TableColumn.h>
Public Member Functions | |
TableColumn () | |
The default constructor creates a null object, i.e. | |
TableColumn (const Table &, const String &columnName) | |
Construct the object for a column in the table using its name. | |
TableColumn (const Table &, uInt columnIndex) | |
Construct the object for a column in the table using its index. | |
TableColumn (const TableColumn &) | |
Copy constructor (reference semantics). | |
virtual | ~TableColumn () |
TableColumn & | operator= (const TableColumn &) |
Assignment has reference semantics. | |
virtual TableColumn * | clone () const |
Clone the object. | |
void | reference (const TableColumn &) |
Change the reference to another column. | |
void | attach (const Table &table, const String &columnName) |
Attach a column to the object. | |
void | attach (const Table &table, uInt columnIndex) |
Bool | isNull () const |
Test if the object is null, i.e. | |
void | throwIfNull () const |
Throw an exception if the object is null, i.e. | |
Bool | isWritable () const |
Test if the column can be written to, thus if the column and the underlying table can be written to. | |
Bool | isWritableAtAll () const |
Test if the column is writable at all (virtual columns might not be). | |
void | checkWritable () const |
Check if the column is writable and throw an exception if not. | |
const TableRecord & | keywordSet () const |
Get readonly access to the column keyword set. | |
TableRecord & | rwKeywordSet () |
Get read/write access to the column keyword set. | |
const ColumnDesc & | columnDesc () const |
Get const access to the column description. | |
Table | table () const |
Get the Table object this column belongs to. | |
uInt | nrow () const |
Get the number of rows in the column. | |
Bool | canChangeShape () const |
Can the shape of an already existing non-FixedShape array be changed? This depends on the storage manager. | |
uInt | ndimColumn () const |
Get the global #dimensions of an array (ie. | |
IPosition | shapeColumn () const |
Get the global shape of an array (ie. | |
Bool | isDefined (uInt rownr) const |
Test if the given cell contains a defined value. | |
Bool | hasContent (uInt rownr=0) const |
Does the column has content in the given row (default is the first row)? It has if it is defined and does not contain an empty array. | |
uInt | ndim (uInt rownr) const |
Get the #dimensions of an array in a particular cell. | |
IPosition | shape (uInt rownr) const |
Get the shape of an array in a particular cell. | |
IPosition | tileShape (uInt rownr) const |
Get the tile shape of an array in a particular cell. | |
void | getScalar (uInt rownr, Bool &value) const |
Get the value of a scalar in the given row. | |
void | getScalar (uInt rownr, uChar &value) const |
void | getScalar (uInt rownr, Short &value) const |
void | getScalar (uInt rownr, uShort &value) const |
void | getScalar (uInt rownr, Int &value) const |
void | getScalar (uInt rownr, uInt &value) const |
void | getScalar (uInt rownr, Int64 &value) const |
void | getScalar (uInt rownr, float &value) const |
void | getScalar (uInt rownr, double &value) const |
void | getScalar (uInt rownr, Complex &value) const |
void | getScalar (uInt rownr, DComplex &value) const |
void | getScalar (uInt rownr, String &value) const |
Bool | asBool (uInt rownr) const |
Get the value from the row and convert it to the required type. | |
uChar | asuChar (uInt rownr) const |
Short | asShort (uInt rownr) const |
uShort | asuShort (uInt rownr) const |
Int | asInt (uInt rownr) const |
uInt | asuInt (uInt rownr) const |
float | asfloat (uInt rownr) const |
double | asdouble (uInt rownr) const |
Complex | asComplex (uInt rownr) const |
DComplex | asDComplex (uInt rownr) const |
String | asString (uInt rownr) const |
void | getScalarValue (uInt rownr, Bool *value, const String &) const |
Get the value of a scalar in the given row. | |
void | getScalarValue (uInt rownr, uChar *value, const String &) const |
void | getScalarValue (uInt rownr, Short *value, const String &) const |
void | getScalarValue (uInt rownr, uShort *value, const String &) const |
void | getScalarValue (uInt rownr, Int *value, const String &) const |
void | getScalarValue (uInt rownr, uInt *value, const String &) const |
void | getScalarValue (uInt rownr, float *value, const String &) const |
void | getScalarValue (uInt rownr, double *value, const String &) const |
void | getScalarValue (uInt rownr, Complex *value, const String &) const |
void | getScalarValue (uInt rownr, DComplex *value, const String &) const |
void | getScalarValue (uInt rownr, String *value, const String &) const |
void | getScalarValue (uInt rownr, void *value, const String &dataTypeId) const |
void | put (uInt rownr, const TableColumn &that, Bool preserveTileShape=False) |
Copy the value of a cell of that column to a cell of this column. | |
virtual void | put (uInt thisRownr, const TableColumn &that, uInt thatRownr, Bool preserveTileShape=False) |
Use possibly different row numbers for that (i.e. | |
void | putColumn (const TableColumn &that) |
Copy the values of that column to this column. | |
void | putScalar (uInt rownr, const Bool &value) |
Put the value of a scalar in the given row. | |
void | putScalar (uInt rownr, const uChar &value) |
void | putScalar (uInt rownr, const Short &value) |
void | putScalar (uInt rownr, const uShort &value) |
void | putScalar (uInt rownr, const Int &value) |
void | putScalar (uInt rownr, const uInt &value) |
void | putScalar (uInt rownr, const float &value) |
void | putScalar (uInt rownr, const double &value) |
void | putScalar (uInt rownr, const Complex &value) |
void | putScalar (uInt rownr, const DComplex &value) |
void | putScalar (uInt rownr, const String &value) |
void | putScalar (uInt rownr, const Char *value) |
void | checkRowNumber (uInt rownr) const |
Check if the row number is valid. | |
void | setMaximumCacheSize (uInt nbytes) const |
Set the maximum cache size (in bytes) to be used by a storage manager. | |
Protected Member Functions | |
BaseColumn * | baseColPtr () const |
Get the baseColPtr_p of this TableColumn object. | |
BaseColumn * | baseColPtr (const TableColumn &that) const |
Get the baseColPtr_p of another TableColumn object. | |
Protected Attributes | |
BaseTable * | baseTabPtr_p |
BaseColumn * | baseColPtr_p |
const ColumnCache * | colCachePtr_p |
Bool | canChangeShape_p |
Bool | isColWritable_p |
Private Member Functions | |
void | throwNotWritable () const |
Throw the exception that the column is not writable. | |
Friends | |
class | ForwardColumn |
Read/write access to a table column.
Public interface
The class TableColumn gives read and write access to a column in a table. In particular access to the column description (for name, data type, etc.) and to the column keyword set can be obtained. Another important function is isDefined, which tests if a cell (i.e. table row) in a column contains a value.
The classes ScalarColumn<T> and ArrayColumn<T> have to be used to get/put the data in the column cells. However, TableColumn has get functions for the basic data types (Bool, uChar, Short, uSort, Int, uInt, float, double, Complex, DComplex and String). Opposite to the get functions in ScalarColumn<T>, the TableColumn get functions support data type promotion.
A default constructor is defined to allow construction of an array of TableColumn objects. However, this constructs an object not referencing a column. Functions like get, etc. will fail (i.e. result in a segmentation fault) when used on such objects. The functions isNull and throwIfNull can be used to test on this. The functions attach and reference can fill in the object.
See module Tables .
Definition at line 98 of file TableColumn.h.
casacore::TableColumn::TableColumn | ( | ) |
The default constructor creates a null object, i.e.
it does not reference a table column. The sole purpose of this constructor is to allow construction of an array of TableColumn objects. The functions reference and attach can be used to make a null object reference a column. Note that get functions, etc. will cause a segmentation fault when operating on a null object. It was felt it was too expensive to test on null over and over again. The user should use the isNull or throwIfNull function in case of doubt.
Construct the object for a column in the table using its name.
Construct the object for a column in the table using its index.
This allows to loop through all columns in a table as:
for (uInt=0; i<tab.ncolumn(); i++) { TableColumn tabcol(tab,i); }
casacore::TableColumn::TableColumn | ( | const TableColumn & | ) |
Copy constructor (reference semantics).
virtual casacore::TableColumn::~TableColumn | ( | ) | [virtual] |
Get the value from the row and convert it to the required type.
This can only be used for scalar columns with a standard data type.
Complex casacore::TableColumn::asComplex | ( | uInt | rownr | ) | const |
DComplex casacore::TableColumn::asDComplex | ( | uInt | rownr | ) | const |
double casacore::TableColumn::asdouble | ( | uInt | rownr | ) | const |
float casacore::TableColumn::asfloat | ( | uInt | rownr | ) | const |
Definition at line 155 of file TableColumn.h.
References reference().
Attach a column to the object.
This is in fact only a shorthand for <
reference (TableColumn (table, columnName));
Reimplemented in casacore::ArrayColumn< T >, casacore::ScalarColumn< T >, casacore::ArrayColumn< Float >, casacore::ArrayColumn< Double >, casacore::ArrayColumn< uChar >, casacore::ArrayColumn< String >, casacore::ArrayColumn< Short >, casacore::ArrayColumn< StoredType >, casacore::ArrayColumn< Int >, casacore::ArrayColumn< DComplex >, casacore::ArrayColumn< Bool >, casacore::ArrayColumn< Complex >, casacore::ArrayColumn< uInt >, casacore::ArrayColumn< uShort >, casacore::ScalarColumn< Float >, casacore::ScalarColumn< Double >, casacore::ScalarColumn< String >, casacore::ScalarColumn< Int >, casacore::ScalarColumn< Bool >, casacore::ScalarColumn< TableRecord >, casacore::ScalarColumn< VirtualType >, and casacore::ScalarColumn< uInt >.
Definition at line 153 of file TableColumn.h.
References reference().
BaseColumn* casacore::TableColumn::baseColPtr | ( | const TableColumn & | that | ) | const [inline, protected] |
Get the baseColPtr_p of another TableColumn object.
This is needed for function put, because baseColPtr_p is a protected member of TableColumn. Another TableColumn has no access to that.
Definition at line 397 of file TableColumn.h.
References baseColPtr_p.
BaseColumn* casacore::TableColumn::baseColPtr | ( | ) | const [inline, protected] |
Get the baseColPtr_p of this TableColumn object.
Definition at line 390 of file TableColumn.h.
References baseColPtr_p.
Bool casacore::TableColumn::canChangeShape | ( | ) | const [inline] |
Can the shape of an already existing non-FixedShape array be changed? This depends on the storage manager.
Most storage managers can handle it, but TiledDataStMan and TiledColumnStMan can not.
Definition at line 203 of file TableColumn.h.
References canChangeShape_p.
void casacore::TableColumn::checkRowNumber | ( | uInt | rownr | ) | const [inline] |
Check if the row number is valid.
It throws an exception if out of range.
Definition at line 374 of file TableColumn.h.
References baseTabPtr_p, and casacore::BaseTable::checkRowNumber().
void casacore::TableColumn::checkWritable | ( | ) | const [inline] |
Check if the column is writable and throw an exception if not.
Definition at line 178 of file TableColumn.h.
References isWritable(), and throwNotWritable().
Referenced by casacore::ScalarColumn< uInt >::put().
virtual TableColumn* casacore::TableColumn::clone | ( | ) | const [virtual] |
Clone the object.
Reimplemented in casacore::ArrayColumn< T >, casacore::ScalarColumn< T >, casacore::ArrayColumn< Float >, casacore::ArrayColumn< Double >, casacore::ArrayColumn< uChar >, casacore::ArrayColumn< String >, casacore::ArrayColumn< Short >, casacore::ArrayColumn< StoredType >, casacore::ArrayColumn< Int >, casacore::ArrayColumn< DComplex >, casacore::ArrayColumn< Bool >, casacore::ArrayColumn< Complex >, casacore::ArrayColumn< uInt >, casacore::ArrayColumn< uShort >, casacore::ScalarColumn< Float >, casacore::ScalarColumn< Double >, casacore::ScalarColumn< String >, casacore::ScalarColumn< Int >, casacore::ScalarColumn< Bool >, casacore::ScalarColumn< TableRecord >, casacore::ScalarColumn< VirtualType >, and casacore::ScalarColumn< uInt >.
const ColumnDesc& casacore::TableColumn::columnDesc | ( | ) | const |
Get const access to the column description.
ColumnDesc functions have to be used to get the data type, etc.\.
Definition at line 264 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalar | ( | uInt | rownr, | |
DComplex & | value | |||
) | const [inline] |
Definition at line 262 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalar | ( | uInt | rownr, | |
Complex & | value | |||
) | const [inline] |
Definition at line 260 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalar | ( | uInt | rownr, | |
double & | value | |||
) | const [inline] |
Definition at line 258 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalar | ( | uInt | rownr, | |
float & | value | |||
) | const [inline] |
Definition at line 256 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
Definition at line 254 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
Definition at line 252 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
Definition at line 250 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
Definition at line 248 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
Definition at line 246 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
Definition at line 244 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
Get the value of a scalar in the given row.
Data type promotion is possible. These functions only work for the standard data types.
Definition at line 242 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
void * | value, | |||
const String & | dataTypeId | |||
) | const [inline] |
Definition at line 311 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
String * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 309 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
DComplex * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 307 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
Complex * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 305 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
double * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 303 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
float * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 301 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
uInt * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 299 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
Int * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 297 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
uShort * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 295 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
Short * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 293 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
uChar * | value, | |||
const String & | ||||
) | const [inline] |
Definition at line 291 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::getScalarValue | ( | uInt | rownr, | |
Bool * | value, | |||
const String & | ||||
) | const [inline] |
Get the value of a scalar in the given row.
These functions work for all data types. Data type promotion is possible for the standard data types. The functions are primarily meant for ScalarColumn<T>.
Definition at line 289 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::getScalar(), and TABLECOLUMNCHECKROW.
Does the column has content in the given row (default is the first row)? It has if it is defined and does not contain an empty array.
Test if the given cell contains a defined value.
Definition at line 219 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::isDefined(), and TABLECOLUMNCHECKROW.
Referenced by casa::ScantableSourceIterator::getEntry(), and casa::ScantableFieldIterator::getEntry().
Bool casacore::TableColumn::isNull | ( | ) | const [inline] |
Test if the object is null, i.e.
does not reference a column.
Definition at line 160 of file TableColumn.h.
References baseColPtr_p, casacore::False, and casacore::True.
Bool casacore::TableColumn::isWritable | ( | ) | const [inline] |
Test if the column can be written to, thus if the column and the underlying table can be written to.
Definition at line 169 of file TableColumn.h.
References baseTabPtr_p, isColWritable_p, and casacore::BaseTable::isWritable().
Referenced by checkWritable().
Bool casacore::TableColumn::isWritableAtAll | ( | ) | const [inline] |
Test if the column is writable at all (virtual columns might not be).
Note that keywords can always be written, even for virtual columns.
Definition at line 174 of file TableColumn.h.
References isColWritable_p.
const TableRecord& casacore::TableColumn::keywordSet | ( | ) | const [inline] |
Get readonly access to the column keyword set.
Definition at line 182 of file TableColumn.h.
References baseColPtr_p, and casacore::BaseColumn::keywordSet().
Get the #dimensions of an array in a particular cell.
Reimplemented in casacore::ArrayColumn< T >, casacore::ArrayColumn< Float >, casacore::ArrayColumn< Double >, casacore::ArrayColumn< uChar >, casacore::ArrayColumn< String >, casacore::ArrayColumn< Short >, casacore::ArrayColumn< StoredType >, casacore::ArrayColumn< Int >, casacore::ArrayColumn< DComplex >, casacore::ArrayColumn< Bool >, casacore::ArrayColumn< Complex >, casacore::ArrayColumn< uInt >, and casacore::ArrayColumn< uShort >.
Definition at line 227 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::ndim(), and TABLECOLUMNCHECKROW.
uInt casacore::TableColumn::ndimColumn | ( | ) | const [inline] |
Get the global #dimensions of an array (ie.
for all cells in column). This is always set for fixed shape arrays. Otherwise, 0 will be returned.
Definition at line 209 of file TableColumn.h.
References baseColPtr_p, and casacore::BaseColumn::ndimColumn().
uInt casacore::TableColumn::nrow | ( | ) | const [inline] |
Get the number of rows in the column.
Definition at line 197 of file TableColumn.h.
References baseColPtr_p, and casacore::BaseColumn::nrow().
TableColumn& casacore::TableColumn::operator= | ( | const TableColumn & | ) |
Assignment has reference semantics.
It copies the object, not the data of that column to this column. Function putColumn
can be used to copy the data of a column.
It does the same as the reference function.
Reimplemented in casacore::ArrayColumn< T >, casacore::ScalarColumn< T >, casacore::ArrayColumn< StoredType >, casacore::ArrayColumn< DComplex >, casacore::ArrayColumn< Complex >, and casacore::ScalarColumn< VirtualType >.
virtual void casacore::TableColumn::put | ( | uInt | thisRownr, | |
const TableColumn & | that, | |||
uInt | thatRownr, | |||
Bool | preserveTileShape = False | |||
) | [virtual] |
Use possibly different row numbers for that (i.e.
input) and and this (i.e. output) cell.
void casacore::TableColumn::put | ( | uInt | rownr, | |
const TableColumn & | that, | |||
Bool | preserveTileShape = False | |||
) | [inline] |
Copy the value of a cell of that column to a cell of this column.
This function only works for the standard data types. Data type promotion will be done if needed. An exception is thrown if this column is not writable or if the data cannot be converted.
Use the same row numbers for both cells.
Definition at line 324 of file TableColumn.h.
References put().
Referenced by put().
void casacore::TableColumn::putColumn | ( | const TableColumn & | that | ) |
Copy the values of that column to this column.
The numbers of rows in both columns must be equal. Data type promotion is possible. An exception is thrown if the data cannot be converted. This function is useful to copy one column to another without knowing their data types. In fact, this function is an assignment operator with copy semantics.
Reimplemented in casacore::ArrayColumn< T >, casacore::ScalarColumn< T >, casacore::ArrayColumn< StoredType >, casacore::ArrayColumn< DComplex >, casacore::ArrayColumn< Complex >, and casacore::ScalarColumn< VirtualType >.
Definition at line 368 of file TableColumn.h.
References putScalar(), and String.
Referenced by putScalar().
Definition at line 366 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::putScalar | ( | uInt | rownr, | |
const DComplex & | value | |||
) | [inline] |
Definition at line 364 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::putScalar | ( | uInt | rownr, | |
const Complex & | value | |||
) | [inline] |
Definition at line 362 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::putScalar | ( | uInt | rownr, | |
const double & | value | |||
) | [inline] |
Definition at line 360 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::putScalar | ( | uInt | rownr, | |
const float & | value | |||
) | [inline] |
Definition at line 358 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
Definition at line 356 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
Definition at line 354 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
Definition at line 352 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
Definition at line 350 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
Definition at line 348 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
Put the value of a scalar in the given row.
Data type promotion is possible. These functions only work for the standard data types.
Definition at line 346 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::putScalar(), and TABLECOLUMNCHECKROW.
void casacore::TableColumn::reference | ( | const TableColumn & | ) |
Change the reference to another column.
This is in fact an assignment operator with reference semantics. It removes the reference to the current column and creates a reference to the column referenced in the other object. It will handle null objects correctly.
Reimplemented in casacore::ArrayColumn< T >, casacore::ScalarColumn< T >, casacore::ArrayColumn< StoredType >, casacore::ArrayColumn< DComplex >, casacore::ArrayColumn< Complex >, and casacore::ScalarColumn< VirtualType >.
Referenced by attach().
TableRecord& casacore::TableColumn::rwKeywordSet | ( | ) |
Get read/write access to the column keyword set.
An exception is thrown if the table is not writable.
void casacore::TableColumn::setMaximumCacheSize | ( | uInt | nbytes | ) | const [inline] |
Set the maximum cache size (in bytes) to be used by a storage manager.
Definition at line 378 of file TableColumn.h.
References baseColPtr_p, and casacore::BaseColumn::setMaximumCacheSize().
Get the shape of an array in a particular cell.
Reimplemented in casacore::ArrayColumn< T >, casacore::ArrayColumn< Float >, casacore::ArrayColumn< Double >, casacore::ArrayColumn< uChar >, casacore::ArrayColumn< String >, casacore::ArrayColumn< Short >, casacore::ArrayColumn< StoredType >, casacore::ArrayColumn< Int >, casacore::ArrayColumn< DComplex >, casacore::ArrayColumn< Bool >, casacore::ArrayColumn< Complex >, casacore::ArrayColumn< uInt >, and casacore::ArrayColumn< uShort >.
Definition at line 231 of file TableColumn.h.
References baseColPtr_p, casacore::BaseColumn::shape(), and TABLECOLUMNCHECKROW.
IPosition casacore::TableColumn::shapeColumn | ( | ) | const [inline] |
Get the global shape of an array (ie.
for all cells in the column). This is always set for fixed shape arrays. Otherwise, a 0-dim shape will be returned.
Definition at line 215 of file TableColumn.h.
References baseColPtr_p, and casacore::BaseColumn::shapeColumn().
void casacore::TableColumn::throwIfNull | ( | ) | const |
Throw an exception if the object is null, i.e.
if function isNull() is True.
void casacore::TableColumn::throwNotWritable | ( | ) | const [private] |
Throw the exception that the column is not writable.
Referenced by checkWritable().
Get the tile shape of an array in a particular cell.
Definition at line 235 of file TableColumn.h.
References baseColPtr_p, TABLECOLUMNCHECKROW, and casacore::BaseColumn::tileShape().
friend class ForwardColumn [friend] |
Definition at line 100 of file TableColumn.h.
BaseColumn* casacore::TableColumn::baseColPtr_p [protected] |
Definition at line 383 of file TableColumn.h.
Referenced by baseColPtr(), casacore::ArrayColumn< uShort >::baseGet(), casacore::ArrayColumn< uShort >::basePut(), casacore::ScalarColumn< uInt >::get(), getScalar(), getScalarValue(), isDefined(), isNull(), keywordSet(), casacore::ArrayColumn< uShort >::ndim(), ndim(), ndimColumn(), nrow(), casacore::ScalarColumn< uInt >::put(), putScalar(), setMaximumCacheSize(), shape(), casacore::ArrayColumn< uShort >::shape(), shapeColumn(), and tileShape().
BaseTable* casacore::TableColumn::baseTabPtr_p [protected] |
Definition at line 382 of file TableColumn.h.
Referenced by checkRowNumber(), and isWritable().
Bool casacore::TableColumn::canChangeShape_p [protected] |
Definition at line 385 of file TableColumn.h.
Referenced by canChangeShape().
const ColumnCache* casacore::TableColumn::colCachePtr_p [protected] |
Definition at line 384 of file TableColumn.h.
Referenced by casacore::ScalarColumn< uInt >::get().
Bool casacore::TableColumn::isColWritable_p [protected] |
Definition at line 386 of file TableColumn.h.
Referenced by isWritable(), and isWritableAtAll().