28 #ifndef TABLES_TABLEVECTOR_H
29 #define TABLES_TABLEVECTOR_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/tables/Tables/TVec.h>
225 {
return (tabVecPtr_p == 0 ?
True :
False); }
229 {
return tabVecPtr_p->ndim(); }
233 {
return tabVecPtr_p->nelements(); }
238 {
return tabVecPtr_p->conform (*vec.
tabVecPtr_p); }
241 {
return tabVecPtr_p->conform (vec); }
246 {
return tabVecPtr_p->value (index); }
251 {
return *tabVecPtr_p; }
254 {
return *tabVecPtr_p; }
260 { tabVecPtr_p = vec.
link(); }
266 tabVecPtr_p->assign (that.
tabVec());
273 tabVecPtr_p->putVal (index,
value);
278 tabVecPtr_p->set (
value);
283 tabVecPtr_p->set (
value);
292 #define ROTableVector TableVector
295 #ifndef CASACORE_NO_AUTO_TEMPLATES
296 #include <casacore/tables/Tables/TableVector.tcc>
String: the storage and methods of handling collections of characters.
Templated base class for table vectors.
TabVecRep< T > * link()
Increments the reference count.
void reference(const TableVector< T > &)
Make a reference to the table vector of the other TableVector.
TableVector(rownr_t leng)
Create a table vector containing a Vector with the given length.
TabVecRep< T > & tabVec()
Return the TabVecRep reference.
void throwIfNull() const
Throw an exception if the table vector is null, i.e.
TableVector(const TableVector< T > &)
Create a table vector from another one (reference semantics)
TableVector(const TableColumn &column)
Create a read/write table vector from the given table column.
T operator()(rownr_t index) const
Get the value of a single pixel.
TableVector()
The default constructor creates a null table vector.
void destruct()
Destruct the object.
uInt ndim() const
Get nr of dimensions (is always 1).
TableVector< T > & operator=(const TableVector< T > &)
Assign a table vector to another one (copy semantics).
Bool isNull() const
Test if the table vector is null, i.e.
TableVector(const Table &, const String &columnName)
Create a read/write table vector from the given table column name.
TableVector(const Vector< T > &)
Create a table vector containing the given Vector (reference semantics).
TabVecRep< T > * tabVecPtr_p
Bool ok() const
Test if internal state is correct.
~TableVector()
Destruct the object.
Bool conform(const TableVector< T > &) const
Test if the shape of the given table vector conforms.
Vector< T > makeVector() const
Make a (normal) Vector from a TableVector (copy semantics).
rownr_t nelements() const
Get nr of elements (ie.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
uInt64 rownr_t
Define the type of a row number in a table.