TVecScaCol.h
Classes
- TabVecScaCol -- Templated table scalar column vectors (full description)
Interface
- Public Members
- TabVecScaCol (const ROTableColumn& column)
- TabVecScaCol (const TableColumn& column)
- ~TabVecScaCol ()
- uInt nelem() const
- T value (uInt index) const
- void getVal (uInt index, T&) const
- void putVal (uInt index, const T&)
- void set (const T&)
Prerequisite
Etymology
TabVecScaCol is the class dealing with a table vector representing
a column of scalars in a table.
Synopsis
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.
Motivation
TabVecScaCol is derived from TabVecRep and as such it is a letter for
the envelope class TableVector.
Template Type Argument Requirements (T)
- Default constructor
- Copy constructor
- Assignment operator
To Do
Member Description
Create a table vector from the given table column.
This constructor is for ROTableVector and does not allow
elements to be changed.
Create a table vector from the given table column.
This constructor is for TableVector and allows elements to be changed.
Destruct the object.
uInt nelem() const
Nr of elements (ie. #rows in table).
T value (uInt index) const
Get a value.
void getVal (uInt index, T&) const
Get a value.
void putVal (uInt index, const T&)
Put a value.
void set (const T&)
Set entire vector to a value.