141 inline TabVecTag
getTag()
const;
153 virtual void set (
const T&) = 0;
185 {
return (nrel_p<0 ? nelem() : nrel_p); }
204 {
return --count_p; }
216 #ifndef CASACORE_NO_AUTO_TEMPLATES
217 #include <casacore/tables/Tables/TVec.tcc>
218 #endif //# CASACORE_NO_AUTO_TEMPLATES
uInt unlink()
Decrements the reference count and returns the resulting count.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
TabVecRep< T > * link()
Increments the reference count.
virtual void putVal(rownr_t index, const T &)=0
Put a value.
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
virtual void getVal(rownr_t index, T &) const =0
Get a value.
virtual void assign(const TabVecRep< T > &)
Set to another table vector.
void * newVec() const
Create a new temporary vector (for result of math operations).
virtual T value(rownr_t index) const =0
Get a value.
Templated base class for table vectors.
LatticeExprNode nelements(const LatticeExprNode &expr)
1-argument function to get the number of elements in a lattice.
void validateConformance(rownr_t) const
Check if vectors are comformant.
bool Bool
Define the standard types used by Casacore.
virtual ~TabVecRep()
Destruct the object.
TabVecTag getTag() const
Get the tag (the type of vector).
uInt64 rownr_t
Define the type of a row number in a table.
rownr_t nelements() const
Get nr of elements (ie.
virtual rownr_t nelem() const
Get nr of elements.
Bool conform(const TabVecRep< T > &) const
Test if vector shape conforms another table vector.
virtual void set(const T &)=0
Set entire vector to a value.
uInt ndim() const
Get nr of dimensions.
TabVecRep()
Create empty table vector.
Bool ok() const
Check internal consistency.