casacore
|
Templated table scalar column vectors. More...
#include <TVecScaCol.h>
Public Member Functions | |
TabVecScaCol (const TableColumn &column) | |
Create a table vector from the given table column. More... | |
~TabVecScaCol () | |
Destruct the object. More... | |
rownr_t | nelem () const |
Nr of elements (ie. More... | |
T | value (rownr_t index) const |
Get a value. More... | |
void | getVal (rownr_t index, T &) const |
Get a value. More... | |
void | putVal (rownr_t index, const T &) |
Put a value. 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... | |
rownr_t | 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 (rownr_t) const |
Check if vectors are comformant. More... | |
void * | newVec () const |
Create a new temporary vector (for result of math operations). More... | |
Protected Attributes | |
ScalarColumn< T > * | colPtr_p |
Protected Attributes inherited from casacore::TabVecRep< T > | |
uInt | count_p |
TabVecTag | tag_p |
Int64 | nrel_p |
Additional Inherited Members |
Templated table scalar column vectors.
Internal
TabVecScaCol is the class dealing with a table vector representing a column of scalars in a table.
TabVecScaCol objects are a view on a column of scalars in a table. The semantics of these table vectors are the same as the normal vectors. So for example, changing an element in the table vector means changing the corresponding field in the underlying table.
TabVecScaCol is derived from TabVecRep and as such it is a letter for the envelope class TableVector.
Definition at line 86 of file TVecScaCol.h.
casacore::TabVecScaCol< T >::TabVecScaCol | ( | const TableColumn & | column | ) |
Create a table vector from the given table column.
This constructor is for TableVector and allows elements to be changed.
casacore::TabVecScaCol< T >::~TabVecScaCol | ( | ) |
Destruct the object.
|
virtual |
Get a value.
Implements casacore::TabVecRep< T >.
|
virtual |
|
virtual |
Put a value.
Implements casacore::TabVecRep< T >.
|
virtual |
Set entire vector to a value.
Implements casacore::TabVecRep< T >.
|
virtual |
Get a value.
Implements casacore::TabVecRep< T >.
|
protected |
Definition at line 117 of file TVecScaCol.h.