casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::TSMCoordColumn Class Reference

A coordinate column in Tiled Storage Manager. More...

#include <TSMCoordColumn.h>

Inheritance diagram for casa::TSMCoordColumn:
casa::TSMColumn casa::StManColumn casa::DataManagerColumn

List of all members.

Public Member Functions

 TSMCoordColumn (const TSMColumn &column, uInt axisNr)
 Create a coordinate column from the given column.
virtual ~TSMCoordColumn ()
 Frees up the storage.
void setShape (uInt rownr, const IPosition &shape)
 Set the shape of the coordinate vector in the given row.
Bool isShapeDefined (uInt rownr)
 Is the value shape defined in the given row?
IPosition shape (uInt rownr)
 Get the shape of the item in the given row.
void getIntV (uInt rownr, Int *dataPtr)
 Get a scalar value in the given row.
void getuIntV (uInt rownr, uInt *dataPtr)
void getfloatV (uInt rownr, float *dataPtr)
void getdoubleV (uInt rownr, double *dataPtr)
void getComplexV (uInt rownr, Complex *dataPtr)
void getDComplexV (uInt rownr, DComplex *dataPtr)
void putIntV (uInt rownr, const Int *dataPtr)
 Put a scalar value into the given row.
void putuIntV (uInt rownr, const uInt *dataPtr)
void putfloatV (uInt rownr, const float *dataPtr)
void putdoubleV (uInt rownr, const double *dataPtr)
void putComplexV (uInt rownr, const Complex *dataPtr)
void putDComplexV (uInt rownr, const DComplex *dataPtr)
void getArrayIntV (uInt rownr, Array< Int > *dataPtr)
 Get the array value in the given row.
void getArrayuIntV (uInt rownr, Array< uInt > *dataPtr)
void getArrayfloatV (uInt rownr, Array< float > *dataPtr)
void getArraydoubleV (uInt rownr, Array< double > *dataPtr)
void getArrayComplexV (uInt rownr, Array< Complex > *dataPtr)
void getArrayDComplexV (uInt rownr, Array< DComplex > *dataPtr)
void putArrayIntV (uInt rownr, const Array< Int > *dataPtr)
 Put the array value into the given row.
void putArrayuIntV (uInt rownr, const Array< uInt > *dataPtr)
void putArrayfloatV (uInt rownr, const Array< float > *dataPtr)
void putArraydoubleV (uInt rownr, const Array< double > *dataPtr)
void putArrayComplexV (uInt rownr, const Array< Complex > *dataPtr)
void putArrayDComplexV (uInt rownr, const Array< DComplex > *dataPtr)

Private Member Functions

 TSMCoordColumn (const TSMCoordColumn &)
 Forbid copy constructor.
TSMCoordColumnoperator= (const TSMCoordColumn &)
 Forbid assignment.

Private Attributes

uInt axisNr_p
 
     


Detailed Description

A coordinate column in Tiled Storage Manager.

Intended use:

Internal

Review Status

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

Prerequisite

Etymology

TSMCoordColumn handles a coordinate column for a Tiled Storage Manager.

Synopsis

TSMCoordColumn is used by TiledStMan to handle the access to a table column containing coordinates of a tiled hypercube axis. There are 2 types of coordinates (as described at

TableDesc::defineHypercolumn ):

  1. As a vector. These are the coordinates of the arrays held in the data cells. They are accessed via the get/putArray functions. Their shapes are dependent on the hypercube shape, so it is checked if they match.
  2. As a scalar. These are the coordinates of the extra axes defined in the hypercube. They are accessed via the get/put functions.

The coordinates are held in a TSMCube object. The row number determines which TSMCube object has to be accessed.

The creation of a TSMCoordColumn object is done by a TSMColumn object. This process is described in more detail in the class TSMColumn .

Motivation

Handling coordinate columns in the Tiled Storage Manager is different from other columns.

Definition at line 96 of file TSMCoordColumn.h.


Constructor & Destructor Documentation

casa::TSMCoordColumn::TSMCoordColumn ( const TSMColumn column,
uInt  axisNr 
)

Create a coordinate column from the given column.

Frees up the storage.

Forbid copy constructor.


Member Function Documentation

void casa::TSMCoordColumn::getArrayComplexV ( uInt  rownr,
Array< Complex > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::getArrayDComplexV ( uInt  rownr,
Array< DComplex > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::getArraydoubleV ( uInt  rownr,
Array< double > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::getArrayfloatV ( uInt  rownr,
Array< float > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::getArrayIntV ( uInt  rownr,
Array< Int > *  dataPtr 
) [virtual]

Get the array value in the given row.

The array pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn get function). The default implementation thrown an "invalid operation exception".

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::getArrayuIntV ( uInt  rownr,
Array< uInt > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::getComplexV ( uInt  rownr,
Complex *  dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::getDComplexV ( uInt  rownr,
DComplex *  dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::getdoubleV ( uInt  rownr,
double *  dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::getfloatV ( uInt  rownr,
float *  dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::getIntV ( uInt  rownr,
Int dataPtr 
) [virtual]

Get a scalar value in the given row.

The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the Scalar/ArrayColumn get function).

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::getuIntV ( uInt  rownr,
uInt dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

Is the value shape defined in the given row?

Reimplemented from casa::DataManagerColumn.

TSMCoordColumn& casa::TSMCoordColumn::operator= ( const TSMCoordColumn ) [private]

Forbid assignment.

void casa::TSMCoordColumn::putArrayComplexV ( uInt  rownr,
const Array< Complex > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::putArrayDComplexV ( uInt  rownr,
const Array< DComplex > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::putArraydoubleV ( uInt  rownr,
const Array< double > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::putArrayfloatV ( uInt  rownr,
const Array< float > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::putArrayIntV ( uInt  rownr,
const Array< Int > *  dataPtr 
) [virtual]

Put the array value into the given row.

The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn put function). The default implementation thrown an "invalid operation exception".

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::putArrayuIntV ( uInt  rownr,
const Array< uInt > *  dataPtr 
) [virtual]

Reimplemented from casa::StManColumn.

void casa::TSMCoordColumn::putComplexV ( uInt  rownr,
const Complex *  dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::putDComplexV ( uInt  rownr,
const DComplex *  dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::putdoubleV ( uInt  rownr,
const double *  dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::putfloatV ( uInt  rownr,
const float *  dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::putIntV ( uInt  rownr,
const Int dataPtr 
) [virtual]

Put a scalar value into the given row.

The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the Scalar/ArrayColumn put function).

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::putuIntV ( uInt  rownr,
const uInt dataPtr 
) [virtual]

Reimplemented from casa::DataManagerColumn.

void casa::TSMCoordColumn::setShape ( uInt  rownr,
const IPosition shape 
) [virtual]

Set the shape of the coordinate vector in the given row.

Reimplemented from casa::DataManagerColumn.

Get the shape of the item in the given row.

Reimplemented from casa::DataManagerColumn.


Member Data Documentation

     

The axis number of the coordinate.

Definition at line 167 of file TSMCoordColumn.h.


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