Go to the documentation of this file.
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>
297 #endif //# CASACORE_NO_AUTO_TEMPLATES
void reference(const TableVector< T > &)
Make a reference to the table vector of the other TableVector.
Bool ok() const
Test if internal state is correct.
void throwIfNull() const
Throw an exception if the table vector is null, i.e.
T operator()(uInt index) const
Get the value of a single pixel.
Bool conform(const TableVector< T > &) const
Test if the shape of the given table vector conforms.
TabVecRep< T > * link()
Increments the reference count.
TableVector(uInt leng)
Create a table vector containing a Vector with the given length.
TabVecRep< T > * tabVecPtr_p
uInt nelements() const
Get nr of elements (ie.
Templated base class for table vectors.
TableVector(const Vector< T > &)
Create a table vector containing the given Vector (reference semantics).
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
TableVector< T > & operator=(const TableVector< T > &)
Assign a table vector to another one (copy semantics).
TabVecRep< T > & tabVec()
Return the TabVecRep reference.
TableVector(const Table &, const String &columnName)
Create a read/write table vector from the given table column name.
~TableVector()
Destruct the object.
this file contains all the compiler specific defines
Vector< T > makeVector() const
Make a (normal) Vector from a TableVector (copy semantics).
uInt ndim() const
Get nr of dimensions (is always 1).
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 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.
void destruct()
Destruct the object.
TableVector()
The default constructor creates a null table vector.