28 #ifndef TABLES_ARRAYCOLUMN_H
29 #define TABLES_ARRAYCOLUMN_H
99 class ArrayColumn :
public ArrayColumnBase
116 ArrayColumn (
const Table&,
const String& columnName);
134 ArrayColumn<T>&
operator= (
const ArrayColumn<T>&);
318 const Slicer& arraySection)
const;
323 const Slicer& arraySection)
const;
358 {
put (rownr, that, rownr, preserveTileShape); }
454 extern template class ArrayColumn<Bool>;
455 extern template class ArrayColumn<Char>;
456 extern template class ArrayColumn<Short>;
457 extern template class ArrayColumn<uShort>;
458 extern template class ArrayColumn<Int>;
459 extern template class ArrayColumn<uInt>;
460 extern template class ArrayColumn<Int64>;
461 extern template class ArrayColumn<Float>;
462 extern template class ArrayColumn<Double>;
463 extern template class ArrayColumn<Complex>;
464 extern template class ArrayColumn<DComplex>;
465 extern template class ArrayColumn<String>;
472 #define ROArrayColumn ArrayColumn
475 #ifndef CASACORE_NO_AUTO_TEMPLATES
476 #include <casacore/tables/Tables/ArrayColumn.tcc>
477 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
A 1-D Specialization of the Array class.
#define TABLECOLUMNCHECKROW(ROWNR)
void setShape(rownr_t rownr, const IPosition &shape)
Set the shape of the array in the given row.
ArrayColumn< T > & operator=(const ArrayColumn< T > &)
Assignment uses reference semantics, thus works the same as function reference.
Array< T > getColumn() const
Main interface class to a read/write table.
IPosition shape(rownr_t rownr) const
Get the shape of an array in a particular cell.
IPosition tileShape(rownr_t rownr) const
Get the tile shape of an array in a particular cell.
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
void checkDataType() const
Check if the data type matches the column data type.
void reference(const ArrayColumn< T > &)
Change the reference to another column.
virtual uInt ndim(rownr_t rownr) const
Get the #dimensions of an array in a particular cell.
void putColumn(const Array< T > &array)
Put the array of all values in the column.
TableColumn()
The default constructor creates a null object, i.e.
BaseColumn * baseColPtr_p
Table table() const
Get the Table object this column belongs to.
ArrayColumn()
The default constructor creates a null object, i.e.
uInt ndim(rownr_t rownr) const
Get the #dimensions of an array in a particular cell.
void putSliceFromRows(const RefRows &rows, const Vector< Vector< Slice > > &arraySlices, const Array< T > &source)
Class holding the row numbers in a RefTable.
void putColumnRange(const Slicer &rowRange, const Array< T > &arr)
Put the array of some values in the column.
void fillColumn(const Array< T > &value)
Put the same value in all cells of the column.
void put(rownr_t rownr, const Array< T > &array)
Put the array in a particular cell (i.e.
bool Bool
Define the standard types used by Casacore.
void attach(const Table &table, const String &columnName)
Attach a column to the object.
void putSlice(rownr_t rownr, const Slicer &arraySection, const Array< T > &array)
Put into a slice of an N-dimensional array in a particular cell.
Read and write access to an array table column with arbitrary data type.
void put(uInt thisRownr, const TableColumn &that, uInt thatRownr, Bool preserveTileShape=False)
For backward compatibility (otherwise ambigious with put taking Bool).
Read/write access to a table column.
void putColumnCells(const RefRows &rownrs, const Array< T > &arr)
void getColumnCells(const RefRows &rownrs, Array< T > &arr, Bool resize=False) const
Specify which elements to extract from an n-dimensional array.
Array< T > operator()(rownr_t rownr) const
void put(rownr_t rownr, const TableColumn &that, Bool preserveTileShape=False)
Copy the value of a cell of that column to a cell of this column.
virtual IPosition shape(rownr_t rownr) const
Get the shape of an array in a particular cell.
uInt64 rownr_t
Define the type of a row number in a table.
void getSlice(rownr_t rownr, const Slicer &arraySection, Array< T > &array, Bool resize=False) const
Get a slice of an N-dimensional array in a particular cell (i.e.
void getColumnRange(const Slicer &rowRange, Array< T > &arr, Bool resize=False) const
Get the array of some values in a column.
String: the storage and methods of handling collections of characters.
virtual TableColumn * clone() const
Clone the object.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.