casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Attributes
casa::TabVecScaCol< T > Class Template Reference

Templated table scalar column vectors. More...

#include <TVecScaCol.h>

Inheritance diagram for casa::TabVecScaCol< T >:
casa::TabVecRep< T >

List of all members.

Public Member Functions

 TabVecScaCol (const TableColumn &column)
 Create a table vector from the given table column.
 ~TabVecScaCol ()
 Destruct the object.
uInt nelem () const
 Nr of elements (ie.
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.

Protected Attributes

ScalarColumn< T > * colPtr_p

Detailed Description

template<class T>
class casa::TabVecScaCol< T >

Templated table scalar column vectors.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

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)

Definition at line 86 of file TVecScaCol.h.


Constructor & Destructor Documentation

template<class T >
casa::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.

template<class T >
casa::TabVecScaCol< T >::~TabVecScaCol ( )

Destruct the object.


Member Function Documentation

template<class T >
void casa::TabVecScaCol< T >::getVal ( uInt  index,
T &   
) const [virtual]

Get a value.

Implements casa::TabVecRep< T >.

template<class T >
uInt casa::TabVecScaCol< T >::nelem ( ) const [virtual]

Nr of elements (ie.

#rows in table).

Reimplemented from casa::TabVecRep< T >.

template<class T >
void casa::TabVecScaCol< T >::putVal ( uInt  index,
const T &   
) [virtual]

Put a value.

Implements casa::TabVecRep< T >.

template<class T >
void casa::TabVecScaCol< T >::set ( const T &  ) [virtual]

Set entire vector to a value.

Implements casa::TabVecRep< T >.

template<class T >
T casa::TabVecScaCol< T >::value ( uInt  index) const [virtual]

Get a value.

Implements casa::TabVecRep< T >.


Member Data Documentation

template<class T >
ScalarColumn<T>* casa::TabVecScaCol< T >::colPtr_p [protected]

Definition at line 117 of file TVecScaCol.h.


The documentation for this class was generated from the following file: