32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Vector.h>
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>
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
Templated base class for table vectors.
uInt ndim() const
Get nr of dimensions.
rownr_t nelements() const
Get nr of elements (ie.
virtual rownr_t nelem() const
Get nr of elements.
Bool ok() const
Check internal consistency.
virtual ~TabVecRep()
Destruct the object.
TabVecRep< T > * link()
Increments the reference count.
virtual void set(const T &)=0
Set entire vector to a value.
void validateConformance(rownr_t) const
Check if vectors are comformant.
virtual void putVal(rownr_t index, const T &)=0
Put a value.
TabVecTag getTag() const
Get the tag (the type of vector).
Bool conform(const TabVecRep< T > &) const
Test if vector shape conforms another table vector.
virtual void assign(const TabVecRep< T > &)
Set to another table vector.
void * newVec() const
Create a new temporary vector (for result of math operations).
TabVecRep()
Create empty table vector.
virtual T value(rownr_t index) const =0
Get a value.
virtual void getVal(rownr_t index, T &) const =0
Get a value.
uInt unlink()
Decrements the reference count and returns the resulting count.
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
LatticeExprNode nelements(const LatticeExprNode &expr)
1-argument function to get the number of elements in a lattice.
uInt64 rownr_t
Define the type of a row number in a table.