casa
5.7.0-16
|
Templated table vectors held in memory as a temporary. More...
#include <TVecTemp.h>
Public Member Functions | |
TabVecTemp (const Vector< T > &) | |
Create table vector containing the given Vector (reference semantics). More... | |
TabVecTemp (uInt leng) | |
Create table vector containing a Vector with given length. More... | |
~TabVecTemp () | |
Destruct the object. More... | |
const T & | operator() (uInt index) const |
Return a reference to a value. More... | |
T & | operator() (uInt index) |
Return a reference to a value. More... | |
T | value (uInt index) const |
Get a value (virtual function). More... | |
void | getVal (uInt index, T &) const |
Get a value (virtual function). More... | |
void | putVal (uInt index, const T &) |
Put a value (virtual function). More... | |
void | set (const T &) |
Set entire vector to a value. More... | |
Public Member Functions inherited from casacore::TabVecRep< T > | |
TabVecRep () | |
Create empty table vector. More... | |
virtual | ~TabVecRep () |
Destruct the object. More... | |
uInt | ndim () const |
Get nr of dimensions. More... | |
uInt | nelements () const |
Get nr of elements (ie. More... | |
Bool | conform (const TabVecRep< T > &) const |
Test if vector shape conforms another table vector. More... | |
Bool | conform (const Vector< T > &) const |
Test if vector shape conforms another vector. More... | |
Bool | ok () const |
Check internal consistency. More... | |
TabVecRep< T > * | link () |
Increments the reference count. More... | |
uInt | unlink () |
Decrements the reference count and returns the resulting count. More... | |
TabVecTag | getTag () const |
Get the tag (the type of vector). More... | |
virtual void | assign (const TabVecRep< T > &) |
Set to another table vector. More... | |
void | validateConformance (uInt) const |
Check if vectors are comformant. More... | |
void * | newVec () const |
Create a new temporary vector (for result of math operations). More... | |
Protected Attributes | |
Vector< T > * | vecPtr_p |
Protected Attributes inherited from casacore::TabVecRep< T > | |
uInt | count_p |
TabVecTag | tag_p |
Int | nrel_p |
Additional Inherited Members | |
Protected Member Functions inherited from casacore::TabVecRep< T > | |
virtual uInt | nelem () const |
Get nr of elements. More... | |
Templated table vectors held in memory as a temporary.
Internal
TabVecTemp is the class dealing with a table vector when used as a temporary in math operations.
TabVecTemp objects enable the use of Vector objects as table vectors. They are used for 2 purposes:
TabVecTemp is derived from TabVecRep and as such a letter for the envelope class TableVector.
Definition at line 91 of file TVecTemp.h.
casacore::TabVecTemp< T >::TabVecTemp | ( | const Vector< T > & | ) |
Create table vector containing the given Vector (reference semantics).
It will set the origin to zero.
casacore::TabVecTemp< T >::TabVecTemp | ( | uInt | leng | ) |
Create table vector containing a Vector with given length.
casacore::TabVecTemp< T >::~TabVecTemp | ( | ) |
Destruct the object.
|
virtual |
Get a value (virtual function).
Implements casacore::TabVecRep< T >.
|
inline |
Return a reference to a value.
Definition at line 134 of file TVecTemp.h.
|
inline |
Return a reference to a value.
Definition at line 137 of file TVecTemp.h.
|
virtual |
Put a value (virtual function).
Implements casacore::TabVecRep< T >.
|
virtual |
Set entire vector to a value.
Implements casacore::TabVecRep< T >.
|
virtual |
Get a value (virtual function).
Implements casacore::TabVecRep< T >.
|
protected |
Definition at line 127 of file TVecTemp.h.