Go to the documentation of this file.
28 #ifndef MEASURES_ARRAYQUANTCOLUMN_H
29 #define MEASURES_ARRAYQUANTCOLUMN_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Vector.h>
34 #include <casacore/casa/Quanta/Quantum.h>
40 template <
class T>
class ArrayColumn;
41 template <
class T>
class ScalarColumn;
264 #define ROArrayQuantColumn ArrayQuantColumn
267 #ifndef CASACORE_NO_AUTO_TEMPLATES
268 #include <casacore/measures/TableMeasures/ArrayQuantColumn.tcc>
269 #endif //# CASACORE_NO_AUTO_TEMPLATES
void put(uInt rownr, const Array< Quantum< T > > &q)
Put an array of quanta into the specified row of the table.
Bool isUnitVariable() const
Test whether the Quantum column has variable units.
ArrayColumn< String > * itsArrUnitsCol
void attach(const Table &tab, const String &columnName, const Unit &)
Bool operator==(const ArrayQuantColumn< T > &that)
Comparison is not defined, since its semantics are unclear.
const ArrayColumn< String > * arrUnitsCol() const
Get access to itsUnitsCol.
void get(uInt rownr, Array< Quantum< T > > &q, const Quantum< T > &other, Bool resize=False) const
Get the quantum array in the specified row.
void reference(const ArrayQuantColumn< T > &that)
Make this object reference the column in "that".
ArrayQuantColumn()
The default constructor creates a null object.
void attach(const Table &tab, const String &columnName)
Attach a column to the object.
ArrayQuantColumn(const Table &tab, const String &columnName)
Create the ArrayQuantColumn from the supplied table and column name.
void init(const Table &tab, const String &columnName)
Initialize the ArrayQuantColumn from the specified table and column.
Array< Quantum< T > > operator()(uInt rownr) const
Return the quantum array stored in the specified row.
void get(uInt rownr, Array< Quantum< T > > &q, const Vector< Unit > &, Bool resize=False) const
Get the quantum array in the specified row.
void cleanUp()
Deletes allocated memory etc.
void attach(const Table &tab, const String &columnName, const Vector< Unit > &)
ScalarColumn< String > * itsScaUnitsCol
ArrayColumn< T > * itsDataCol
ArrayQuantColumn & operator=(const ArrayQuantColumn< T > &that)
Assignment makes no sense in a read only class.
void getData(uInt rownr, Array< Quantum< T > > &q, Bool resize) const
Get the data without possible conversion.
this file contains all the compiler specific defines
ArrayQuantColumn(const Table &tab, const String &columnName, const Vector< Unit > &)
ArrayQuantColumn(const ArrayQuantColumn< T > &that)
Copy constructor (copy semantics).
Vector< Unit > itsUnitOut
void get(uInt rownr, Array< Quantum< T > > &q, Bool resize=False) const
Get the quantum array in the specified row.
ArrayQuantColumn(const Table &tab, const String &columnName, const Unit &)
Create the ArrayQuantColumn from the supplied table and column name.
void throwIfNull() const
Throw an exception if the object is null.
const ScalarColumn< String > * scaUnitsCol() const
void get(uInt rownr, Array< Quantum< T > > &q, const Unit &, Bool resize=False) const
Get the quantum array in the specified row.
Vector< String > getUnits() const
Returns the column's units as a vector of strings.
template <class T, class U> class vector;
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
Bool isNull() const
Test if the object is null.