141 inline TabVecTag
getTag()
const;
147 virtual void getVal (
uInt index, T&)
const = 0;
150 virtual void putVal (
uInt index,
const T&) = 0;
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.
A 1-D Specialization of the Array class.
TabVecRep< T > * link()
Increments the reference count.
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
virtual uInt nelem() const
Get nr of elements.
virtual void assign(const TabVecRep< T > &)
Set to another table vector.
virtual void putVal(uInt index, const T &)=0
Put a value.
void * newVec() const
Create a new temporary vector (for result of math operations).
Templated base class for table vectors.
virtual T value(uInt index) const =0
Get a value.
void validateConformance(uInt) const
Check if vectors are comformant.
uInt nelements() const
Get nr of elements (ie.
LatticeExprNode nelements(const LatticeExprNode &expr)
1-argument function to get the number of elements in a lattice.
virtual void getVal(uInt index, T &) const =0
Get a value.
bool Bool
Define the standard types used by Casacore.
virtual ~TabVecRep()
Destruct the object.
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 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.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.