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

Abstract base class for a column in a data manager. More...

#include <DataManager.h>

Inheritance diagram for casa::DataManagerColumn:
casa::ForwardColumn casa::StManColumn casa::VirtualArrayColumn< T > casa::VirtualScalarColumn< T > casa::VirtualTaQLColumn casa::VirtualArrayColumn< Bool > casa::VirtualArrayColumn< Complex > casa::VirtualArrayColumn< Float > casa::VirtualArrayColumn< VirtualType >

List of all members.

Public Member Functions

 DataManagerColumn ()
 Create a column.
virtual ~DataManagerColumn ()
 Frees up the storage.
void setIsFixedShape (Bool isFixedShape)
 Set the isFixedShape flag.
Bool isFixedShape () const
 Is this a fixed shape column?
virtual int dataType () const =0
 Get the data type of the column as defined in DataType.h.
virtual String dataTypeId () const
 Get the data type id of the column for dataType==TpOther.
virtual Bool isWritable () const
 Test if data can be put into this column.
virtual void setMaxLength (uInt maxLength)
 Set the maximum length of the value (can be used for strings).
void setFixedShapeColumn (const IPosition &shape)
 Set the shape of all (fixed-shaped) arrays in the column.
virtual void setShape (uInt rownr, const IPosition &shape)
 Set the shape of an (variable-shaped) array in the given row.
virtual void setShapeTiled (uInt rownr, const IPosition &shape, const IPosition &tileShape)
 Set the shape and tile shape of an (variable-shaped) array in the given row.
virtual Bool isShapeDefined (uInt rownr)
 Is the value shape defined in the given row? By default it returns True.
virtual uInt ndim (uInt rownr)
 Get the dimensionality of the item in the given row.
virtual IPosition shape (uInt rownr)
 Get the shape of the item in the given row.
virtual Bool canChangeShape () const
 Can the data manager handle chaging the shape of an existing array? Default is no.
virtual Bool canAccessScalarColumn (Bool &reask) const
 Can the column data manager handle access to a scalar column? If not, the caller should access the column by looping through all cells in the column.
virtual Bool canAccessScalarColumnCells (Bool &reask) const
 Can the column data manager handle access to a clooection of cells in a scalar column? If not, the caller should access the column cells by looping through the cells in the column.
virtual Bool canAccessArrayColumn (Bool &reask) const
 Can the column data manager handle access to a scalar column? If not, the caller should access the column by looping through all cells in the column.
virtual Bool canAccessArrayColumnCells (Bool &reask) const
 Can the column data manager handle access to a collection of cells in an array column? If not, the caller should access the column cells by looping through the cells in the column.
virtual Bool canAccessSlice (Bool &reask) const
 Can the column data manager handle access to a cell slice? If not, the caller should do slicing itself (by accessing the entire array and slicing it).
virtual Bool canAccessColumnSlice (Bool &reask) const
 Can the column data manager handle access to a column slice? If not, the caller should access the column slice by looping through all cell slices in the column.
ColumnCachecolumnCache ()
 Get access to the ColumnCache object.
const ColumnCachecolumnCachePtr () const
void get (uInt rownr, Bool *dataPtr)
 Get the scalar value in the given row.
void get (uInt rownr, uChar *dataPtr)
void get (uInt rownr, Short *dataPtr)
void get (uInt rownr, uShort *dataPtr)
void get (uInt rownr, Int *dataPtr)
void get (uInt rownr, uInt *dataPtr)
void get (uInt rownr, float *dataPtr)
void get (uInt rownr, double *dataPtr)
void get (uInt rownr, Complex *dataPtr)
void get (uInt rownr, DComplex *dataPtr)
void get (uInt rownr, String *dataPtr)
void get (uInt rownr, void *dataPtr)
 This function is the get for all non-standard data types.
void put (uInt rownr, const Bool *dataPtr)
 Put the scalar value into the given row.
void put (uInt rownr, const uChar *dataPtr)
void put (uInt rownr, const Short *dataPtr)
void put (uInt rownr, const uShort *dataPtr)
void put (uInt rownr, const Int *dataPtr)
void put (uInt rownr, const uInt *dataPtr)
void put (uInt rownr, const float *dataPtr)
void put (uInt rownr, const double *dataPtr)
void put (uInt rownr, const Complex *dataPtr)
void put (uInt rownr, const DComplex *dataPtr)
void put (uInt rownr, const String *dataPtr)
void put (uInt rownr, const void *dataPtr)
 This function is the put for all non-standard data types.
virtual void getScalarColumnV (void *dataPtr)
 Get all scalar values in the column.
virtual void putScalarColumnV (const void *dataPtr)
 Put all scalar values in the column.
virtual void getScalarColumnCellsV (const RefRows &rownrs, void *dataPtr)
 Get some scalar values in the column.
virtual void putScalarColumnCellsV (const RefRows &rownrs, const void *dataPtr)
 Put some scalar values in the column.
virtual uInt getBlockV (uInt rownr, uInt nrmax, void *dataPtr)
 Get scalars from the given row on with a maximum of nrmax values.
virtual void putBlockV (uInt rownr, uInt nrmax, const void *dataPtr)
 Put nrmax scalars from the given row on.
virtual void getArrayV (uInt rownr, void *dataPtr)
 Get the array value in the given row.
virtual void putArrayV (uInt rownr, const void *dataPtr)
 Put the array value into the given row.
virtual void getArrayColumnV (void *dataPtr)
 Get all array values in the column.
virtual void putArrayColumnV (const void *dataPtr)
 Put all array values in the column.
virtual void getArrayColumnCellsV (const RefRows &rownrs, void *dataPtr)
 Get some array values in the column.
virtual void putArrayColumnCellsV (const RefRows &rownrs, const void *dataPtr)
 Put some array values in the column.
virtual void getSliceV (uInt rownr, const Slicer &slicer, void *dataPtr)
 Get a section of the array in the given row.
virtual void putSliceV (uInt rownr, const Slicer &slicer, const void *dataPtr)
 Put into a section of the array in the given row.
virtual void getColumnSliceV (const Slicer &slicer, void *dataPtr)
 Get a section of all arrays in the column.
virtual void putColumnSliceV (const Slicer &slicer, const void *dataPtr)
 Put into a section of all arrays in the column.
virtual void getColumnSliceCellsV (const RefRows &rownrs, const Slicer &slicer, void *dataPtr)
 Get a section of some arrays in the column.
virtual void putColumnSliceCellsV (const RefRows &rownrs, const Slicer &slicer, const void *dataPtr)
 Put into a section of some arrays in the column.
void throwGet () const
 Throw an "invalid operation" exception for the default implementation of get.
void throwPut () const
 Throw an "invalid operation" exception for the default implementation of put.
void setColumnName (const String &colName)
 Set the column name.
const StringcolumnName () const
 Get rhe column name.

Protected Member Functions

virtual void getBoolV (uInt rownr, Bool *dataPtr)
 Get the scalar value in the given row.
virtual void getuCharV (uInt rownr, uChar *dataPtr)
virtual void getShortV (uInt rownr, Short *dataPtr)
virtual void getuShortV (uInt rownr, uShort *dataPtr)
virtual void getIntV (uInt rownr, Int *dataPtr)
virtual void getuIntV (uInt rownr, uInt *dataPtr)
virtual void getfloatV (uInt rownr, float *dataPtr)
virtual void getdoubleV (uInt rownr, double *dataPtr)
virtual void getComplexV (uInt rownr, Complex *dataPtr)
virtual void getDComplexV (uInt rownr, DComplex *dataPtr)
virtual void getStringV (uInt rownr, String *dataPtr)
virtual void getOtherV (uInt rownr, void *dataPtr)
 This function is the get for all non-standard data types.
virtual void putBoolV (uInt rownr, const Bool *dataPtr)
 Put the scalar value into the given row.
virtual void putuCharV (uInt rownr, const uChar *dataPtr)
virtual void putShortV (uInt rownr, const Short *dataPtr)
virtual void putuShortV (uInt rownr, const uShort *dataPtr)
virtual void putIntV (uInt rownr, const Int *dataPtr)
virtual void putuIntV (uInt rownr, const uInt *dataPtr)
virtual void putfloatV (uInt rownr, const float *dataPtr)
virtual void putdoubleV (uInt rownr, const double *dataPtr)
virtual void putComplexV (uInt rownr, const Complex *dataPtr)
virtual void putDComplexV (uInt rownr, const DComplex *dataPtr)
virtual void putStringV (uInt rownr, const String *dataPtr)
virtual void putOtherV (uInt rownr, const void *dataPtr)
 This function is the put for all non-standard data types.

Private Member Functions

virtual void setShapeColumn (const IPosition &shape)
 Set the shape of all (fixed-shaped) arrays in the column.
 DataManagerColumn (const DataManagerColumn &)
 The copy constructor cannot be used for this base class.
DataManagerColumnoperator= (const DataManagerColumn &)
 Assignment cannot be used for this base class.

Private Attributes

Bool isFixedShape_p
 
     

String colName_p
ColumnCache colCache_p

Detailed Description

Abstract base class for a column in a data manager.

Intended use:

Internal

Review Status

Reviewed By:
Gareth Hunt
Date Reviewed:
94Nov17

Prerequisite

Etymology

DataManagerColumn handles a column for a data manager.

Synopsis

DataManagerColumn is the abstract base class to handle a column in a data manager. Each data manager class must have one or more associated classes derived from DataManagerColumn to handle the columns. For example, storage manager StManAipsIO has columns classes StManColumnAipsIO, StManColumnArrayAipsIO and StManColumnIndArrayAipsIO to handle scalars, direct arrays and indirect arrays, resp.. However, using multiple inheritance it is possible that the derived DataManager and DataManagerColumn classes are the same. This is used in class ScaledArrayEngine<S,T> which represents both the data manager and its column class. It can do that, because the virtual column engine ScaledArrayEngine can handle only one column.

In the synopsis of class DataManager it is described how the (derived) DataManagerColumn objects gets created and deleted.

DataManagerColumn defines various virtual functions to get or put (slices) of data in a column. These functions are called by the table column classes ScalarColumnData and ArrayColumnData. It does not define functions create, open, flush and prepare like those defined in DataManager. It is left to the derived classes to define those as needed and to interact properly with their data manager object.

Motivation

An abstract base class is needed to support multiple data managers in the table system

Definition at line 599 of file DataManager.h.


Constructor & Destructor Documentation

Create a column.

Definition at line 604 of file DataManager.h.

Frees up the storage.

The copy constructor cannot be used for this base class.

The private declaration of this constructor makes it unusable.


Member Function Documentation

virtual Bool casa::DataManagerColumn::canAccessArrayColumn ( Bool reask) const [virtual]

Can the column data manager handle access to a scalar column? If not, the caller should access the column by looping through all cells in the column.

Default is no.
The returned reask switch determines if the information is permanent. False indicates it is permanent; True indicates it will be reasked for the next get/putColumn. By default reask is set to False.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, casa::TSMDataColumn, casa::ForwardColumnIndexedRow, casa::StManColumnArrayAipsIO, and casa::MSMDirColumn.

virtual Bool casa::DataManagerColumn::canAccessArrayColumnCells ( Bool reask) const [virtual]

Can the column data manager handle access to a collection of cells in an array column? If not, the caller should access the column cells by looping through the cells in the column.

Default is no.
The returned reask switch determines if the information is permanent. False indicates it is permanent; True indicates it will be reasked for the next get/putColumn. By default reask is set to False.

Reimplemented in casa::ScaledComplexData< VirtualType, StoredType >, and casa::StManColumn.

virtual Bool casa::DataManagerColumn::canAccessColumnSlice ( Bool reask) const [virtual]

Can the column data manager handle access to a column slice? If not, the caller should access the column slice by looping through all cell slices in the column.

Default is no.
The returned reask switch determines if the information is permanent. False indicates it is permanent; True indicates it will be reasked for the next get/putColumn. By default reask is set to False.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, casa::TSMDataColumn, and casa::ForwardColumnIndexedRow.

virtual Bool casa::DataManagerColumn::canAccessScalarColumn ( Bool reask) const [virtual]

Can the column data manager handle access to a scalar column? If not, the caller should access the column by looping through all cells in the column.

Default is no.
The returned reask switch determines if the information is permanent. False indicates it is permanent; True indicates it will be reasked for the next get/putColumn. By default reask is set to False.

Reimplemented in casa::VirtualScalarColumn< T >, casa::ForwardColumn, casa::StManColumn, casa::TSMDataColumn, and casa::ForwardColumnIndexedRow.

virtual Bool casa::DataManagerColumn::canAccessScalarColumnCells ( Bool reask) const [virtual]

Can the column data manager handle access to a clooection of cells in a scalar column? If not, the caller should access the column cells by looping through the cells in the column.

Default is no.
The returned reask switch determines if the information is permanent. False indicates it is permanent; True indicates it will be reasked for the next get/putColumn. By default reask is set to False.

Reimplemented in casa::StManColumn.

virtual Bool casa::DataManagerColumn::canAccessSlice ( Bool reask) const [virtual]

Can the column data manager handle access to a cell slice? If not, the caller should do slicing itself (by accessing the entire array and slicing it).

Default is no.
The returned reask switch determines if the information is permanent. False indicates it is permanent; True indicates it will be reasked for the next get/putColumn. By default reask is set to False.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, casa::TSMDataColumn, casa::ISMIndColumn, casa::SSMIndColumn, casa::StManColumnIndArrayAipsIO, casa::StManColumnArrayAipsIO, casa::MSMIndColumn, and casa::MSMDirColumn.

virtual Bool casa::DataManagerColumn::canChangeShape ( ) const [virtual]

Get access to the ColumnCache object.

Definition at line 740 of file DataManager.h.

References colCache_p.

Definition at line 742 of file DataManager.h.

References colCache_p.

const String& casa::DataManagerColumn::columnName ( ) const [inline]

Get rhe column name.

Reimplemented in casa::TSMColumn.

Definition at line 983 of file DataManager.h.

References colName_p.

virtual int casa::DataManagerColumn::dataType ( ) const [pure virtual]
virtual String casa::DataManagerColumn::dataTypeId ( ) const [virtual]

Get the data type id of the column for dataType==TpOther.

The default implementation returns an emptry string. This function is required for virtual column engines handling non-standard data types. It is used to check the data type.

Reimplemented in casa::ForwardColumn, casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, and casa::VirtualScalarColumn< T >.

void casa::DataManagerColumn::get ( uInt  rownr,
Bool dataPtr 
) [inline]

Get the scalar value in the given row.

These functions are non-virtual and are converted to their virtual getV equivalent to achieve that a derived templated class (like VirtualScalarColumn) does not have to declare and implement all these functions. The compiler complains about hiding virtual functions if you do not declare all virtual functions with the same name in a derived class.

Definition at line 754 of file DataManager.h.

References getBoolV().

void casa::DataManagerColumn::get ( uInt  rownr,
uChar dataPtr 
) [inline]

Definition at line 756 of file DataManager.h.

References getuCharV().

void casa::DataManagerColumn::get ( uInt  rownr,
Short dataPtr 
) [inline]

Definition at line 758 of file DataManager.h.

References getShortV().

void casa::DataManagerColumn::get ( uInt  rownr,
uShort dataPtr 
) [inline]

Definition at line 760 of file DataManager.h.

References getuShortV().

void casa::DataManagerColumn::get ( uInt  rownr,
Int dataPtr 
) [inline]

Definition at line 762 of file DataManager.h.

References getIntV().

void casa::DataManagerColumn::get ( uInt  rownr,
uInt dataPtr 
) [inline]

Definition at line 764 of file DataManager.h.

References getuIntV().

void casa::DataManagerColumn::get ( uInt  rownr,
float *  dataPtr 
) [inline]

Definition at line 766 of file DataManager.h.

References getfloatV().

void casa::DataManagerColumn::get ( uInt  rownr,
double *  dataPtr 
) [inline]

Definition at line 768 of file DataManager.h.

References getdoubleV().

void casa::DataManagerColumn::get ( uInt  rownr,
Complex *  dataPtr 
) [inline]

Definition at line 770 of file DataManager.h.

References getComplexV().

void casa::DataManagerColumn::get ( uInt  rownr,
DComplex *  dataPtr 
) [inline]

Definition at line 772 of file DataManager.h.

References getDComplexV().

void casa::DataManagerColumn::get ( uInt  rownr,
String dataPtr 
) [inline]

Definition at line 774 of file DataManager.h.

References getStringV().

void casa::DataManagerColumn::get ( uInt  rownr,
void *  dataPtr 
) [inline]

This function is the get for all non-standard data types.

Definition at line 777 of file DataManager.h.

References getOtherV().

virtual void casa::DataManagerColumn::getArrayColumnCellsV ( const RefRows rownrs,
void *  dataPtr 
) [virtual]

Get some array values in the column.

The argument dataPtr is in fact an Array<T>*, but a void* is needed to be generic. The vector pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn getColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, and casa::StManColumn.

virtual void casa::DataManagerColumn::getArrayColumnV ( void *  dataPtr) [virtual]

Get all array values in the column.

The argument dataPtr is in fact an Array<T>*, but a void* is needed to be generic. The vector pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn getColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, and casa::StManColumn.

virtual void casa::DataManagerColumn::getArrayV ( uInt  rownr,
void *  dataPtr 
) [virtual]

Get the array value in the given row.

The argument dataPtr is in fact an Array<T>*, but a void* is needed to be generic. The array pointed to by dataPtr has to have the correct shape (which is guaranteed by the ArrayColumn get function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, casa::VirtualTaQLColumn, casa::StManColumn, and casa::ForwardColumnIndexedRow.

virtual uInt casa::DataManagerColumn::getBlockV ( uInt  rownr,
uInt  nrmax,
void *  dataPtr 
) [virtual]

Get scalars from the given row on with a maximum of nrmax values.

It returns the actual number of values got. This can be used to get an entire column of scalars or to get a part of a column (for a cache for example). The argument dataPtr is in fact a T*, but a void* is needed to be generic. The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualScalarColumn< T >, and casa::StManColumn.

virtual void casa::DataManagerColumn::getBoolV ( uInt  rownr,
Bool dataPtr 
) [protected, virtual]

Get the scalar value in the given row.

The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualScalarColumn< T >, casa::ForwardColumn, casa::VirtualTaQLColumn, casa::TSMDataColumn, casa::ISMColumn, casa::ForwardColumnIndexedRow, casa::SSMColumn, casa::StManColumnAipsIO, casa::MSMColumn, and casa::TSMIdColumn.

Referenced by get().

virtual void casa::DataManagerColumn::getColumnSliceCellsV ( const RefRows rownrs,
const Slicer slicer,
void *  dataPtr 
) [virtual]

Get a section of some arrays in the column.

The argument dataPtr is in fact an Array<T>*, but a void* is needed to be generic. The array pointed to by dataPtr has to have the correct shape (which is guaranteed by the ArrayColumn getColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, and casa::StManColumn.

virtual void casa::DataManagerColumn::getColumnSliceV ( const Slicer slicer,
void *  dataPtr 
) [virtual]

Get a section of all arrays in the column.

The argument dataPtr is in fact an Array<T>*, but a void* is needed to be generic. The array pointed to by dataPtr has to have the correct shape (which is guaranteed by the ArrayColumn getColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, and casa::StManColumn.

virtual void casa::DataManagerColumn::getComplexV ( uInt  rownr,
Complex *  dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getDComplexV ( uInt  rownr,
DComplex *  dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getdoubleV ( uInt  rownr,
double *  dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getfloatV ( uInt  rownr,
float *  dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getIntV ( uInt  rownr,
Int dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getOtherV ( uInt  rownr,
void *  dataPtr 
) [protected, virtual]

This function is the get for all non-standard data types.

Reimplemented in casa::ForwardColumn, casa::VirtualScalarColumn< T >, and casa::ForwardColumnIndexedRow.

Referenced by get().

virtual void casa::DataManagerColumn::getScalarColumnCellsV ( const RefRows rownrs,
void *  dataPtr 
) [virtual]

Get some scalar values in the column.

The argument dataPtr is in fact a Vector<T>*, but a void* is needed to be generic. The vector pointed to by dataPtr has to have the correct length (which is guaranteed by the ScalarColumn getColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, and casa::StManColumn.

virtual void casa::DataManagerColumn::getScalarColumnV ( void *  dataPtr) [virtual]

Get all scalar values in the column.

The argument dataPtr is in fact a Vector<T>*, but a void* is needed to be generic. The vector pointed to by dataPtr has to have the correct length (which is guaranteed by the ScalarColumn getColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, casa::VirtualScalarColumn< T >, and casa::StManColumn.

virtual void casa::DataManagerColumn::getShortV ( uInt  rownr,
Short dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getSliceV ( uInt  rownr,
const Slicer slicer,
void *  dataPtr 
) [virtual]

Get a section of the array in the given row.

The argument dataPtr is in fact an Array<T>*, but a void* is needed to be generic. The array pointed to by dataPtr has to have the correct shape (which is guaranteed by the ArrayColumn getSlice function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, casa::StManColumn, and casa::ForwardColumnIndexedRow.

virtual void casa::DataManagerColumn::getStringV ( uInt  rownr,
String dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getuCharV ( uInt  rownr,
uChar dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getuIntV ( uInt  rownr,
uInt dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::getuShortV ( uInt  rownr,
uShort dataPtr 
) [protected, virtual]

Is this a fixed shape column?

Definition at line 615 of file DataManager.h.

References isFixedShape_p.

Referenced by setIsFixedShape().

virtual Bool casa::DataManagerColumn::isShapeDefined ( uInt  rownr) [virtual]
virtual Bool casa::DataManagerColumn::isWritable ( ) const [virtual]
virtual uInt casa::DataManagerColumn::ndim ( uInt  rownr) [virtual]
DataManagerColumn& casa::DataManagerColumn::operator= ( const DataManagerColumn ) [private]

Assignment cannot be used for this base class.

The private declaration of this operator makes it unusable.

void casa::DataManagerColumn::put ( uInt  rownr,
const Bool dataPtr 
) [inline]

Put the scalar value into the given row.

These functions are non-virtual and are converted to their virtual putV equivalent to achieve that a derived templated class (like VirtualScalarColumn) does not have to declare and implement all these functions. The compiler complains about hiding virtual functions if you do not declare all virtual functions with the same name in a derived class.

Definition at line 789 of file DataManager.h.

References putBoolV().

void casa::DataManagerColumn::put ( uInt  rownr,
const uChar dataPtr 
) [inline]

Definition at line 791 of file DataManager.h.

References putuCharV().

void casa::DataManagerColumn::put ( uInt  rownr,
const Short dataPtr 
) [inline]

Definition at line 793 of file DataManager.h.

References putShortV().

void casa::DataManagerColumn::put ( uInt  rownr,
const uShort dataPtr 
) [inline]

Definition at line 795 of file DataManager.h.

References putuShortV().

void casa::DataManagerColumn::put ( uInt  rownr,
const Int dataPtr 
) [inline]

Definition at line 797 of file DataManager.h.

References putIntV().

void casa::DataManagerColumn::put ( uInt  rownr,
const uInt dataPtr 
) [inline]

Definition at line 799 of file DataManager.h.

References putuIntV().

void casa::DataManagerColumn::put ( uInt  rownr,
const float *  dataPtr 
) [inline]

Definition at line 801 of file DataManager.h.

References putfloatV().

void casa::DataManagerColumn::put ( uInt  rownr,
const double *  dataPtr 
) [inline]

Definition at line 803 of file DataManager.h.

References putdoubleV().

void casa::DataManagerColumn::put ( uInt  rownr,
const Complex *  dataPtr 
) [inline]

Definition at line 805 of file DataManager.h.

References putComplexV().

void casa::DataManagerColumn::put ( uInt  rownr,
const DComplex *  dataPtr 
) [inline]

Definition at line 807 of file DataManager.h.

References putDComplexV().

void casa::DataManagerColumn::put ( uInt  rownr,
const String dataPtr 
) [inline]

Definition at line 809 of file DataManager.h.

References putStringV().

void casa::DataManagerColumn::put ( uInt  rownr,
const void *  dataPtr 
) [inline]

This function is the put for all non-standard data types.

Definition at line 812 of file DataManager.h.

References putOtherV().

virtual void casa::DataManagerColumn::putArrayColumnCellsV ( const RefRows rownrs,
const void *  dataPtr 
) [virtual]

Put some array values in the column.

The argument dataPtr is in fact an const Array<T>*, but a const void* is needed to be generic. The vector pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn getColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, and casa::StManColumn.

virtual void casa::DataManagerColumn::putArrayColumnV ( const void *  dataPtr) [virtual]

Put all array values in the column.

The argument dataPtr is in fact a const Array<T>*, but a const void* is needed to be generic. The vector pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn putColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, and casa::StManColumn.

virtual void casa::DataManagerColumn::putArrayV ( uInt  rownr,
const void *  dataPtr 
) [virtual]

Put the array value into the given row.

The argument dataPtr is in fact a const Array<T>*, but a const void* is needed to be generic. The array pointed to by dataPtr has to have the correct shape (which is guaranteed by the ArrayColumn put function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, casa::StManColumn, and casa::ForwardColumnIndexedRow.

virtual void casa::DataManagerColumn::putBlockV ( uInt  rownr,
uInt  nrmax,
const void *  dataPtr 
) [virtual]

Put nrmax scalars from the given row on.

It returns the actual number of values put. This can be used to put an entire column of scalars or to put a part of a column (for a cache for example). The argument dataPtr is in fact a const T*, but a const void* is needed to be generic. The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualScalarColumn< T >, and casa::StManColumn.

virtual void casa::DataManagerColumn::putBoolV ( uInt  rownr,
const Bool dataPtr 
) [protected, virtual]

Put the scalar value into the given row.

The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualScalarColumn< T >, casa::ForwardColumn, casa::TSMDataColumn, casa::ISMColumn, casa::ForwardColumnIndexedRow, casa::SSMColumn, casa::StManColumnAipsIO, casa::MSMColumn, and casa::TSMIdColumn.

Referenced by put().

virtual void casa::DataManagerColumn::putColumnSliceCellsV ( const RefRows rownrs,
const Slicer slicer,
const void *  dataPtr 
) [virtual]

Put into a section of some arrays in the column.

The argument dataPtr is in fact a const Array<T>*, but a const void* is needed to be generic. The array pointed to by dataPtr has to have the correct shape (which is guaranteed by the ArrayColumn putColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, and casa::StManColumn.

virtual void casa::DataManagerColumn::putColumnSliceV ( const Slicer slicer,
const void *  dataPtr 
) [virtual]

Put into a section of all arrays in the column.

The argument dataPtr is in fact a const Array<T>*, but a const void* is needed to be generic. The array pointed to by dataPtr has to have the correct shape (which is guaranteed by the ArrayColumn putColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, and casa::StManColumn.

virtual void casa::DataManagerColumn::putComplexV ( uInt  rownr,
const Complex *  dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putDComplexV ( uInt  rownr,
const DComplex *  dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putdoubleV ( uInt  rownr,
const double *  dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putfloatV ( uInt  rownr,
const float *  dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putIntV ( uInt  rownr,
const Int dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putOtherV ( uInt  rownr,
const void *  dataPtr 
) [protected, virtual]

This function is the put for all non-standard data types.

Reimplemented in casa::ForwardColumn, casa::VirtualScalarColumn< T >, and casa::ForwardColumnIndexedRow.

Referenced by put().

virtual void casa::DataManagerColumn::putScalarColumnCellsV ( const RefRows rownrs,
const void *  dataPtr 
) [virtual]

Put some scalar values in the column.

The argument dataPtr is in fact a const Vector<T>*, but a const void* is needed to be generic. The vector pointed to by dataPtr has to have the correct length (which is guaranteed by the ScalarColumn getColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, and casa::StManColumn.

virtual void casa::DataManagerColumn::putScalarColumnV ( const void *  dataPtr) [virtual]

Put all scalar values in the column.

The argument dataPtr is in fact a const Vector<T>*, but a const void* is needed to be generic. The vector pointed to by dataPtr has to have the correct length (which is guaranteed by the ScalarColumn putColumn function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::ForwardColumn, casa::VirtualScalarColumn< T >, and casa::StManColumn.

virtual void casa::DataManagerColumn::putShortV ( uInt  rownr,
const Short dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putSliceV ( uInt  rownr,
const Slicer slicer,
const void *  dataPtr 
) [virtual]

Put into a section of the array in the given row.

The argument dataPtr is in fact a const Array<T>*, but a const void* is needed to be generic. The array pointed to by dataPtr has to have the correct shape (which is guaranteed by the ArrayColumn putSlice function). The default implementation throws an "invalid operation" exception.

Reimplemented in casa::VirtualArrayColumn< T >, casa::VirtualArrayColumn< Float >, casa::VirtualArrayColumn< Bool >, casa::VirtualArrayColumn< Complex >, casa::VirtualArrayColumn< VirtualType >, casa::ForwardColumn, casa::StManColumn, and casa::ForwardColumnIndexedRow.

virtual void casa::DataManagerColumn::putStringV ( uInt  rownr,
const String dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putuCharV ( uInt  rownr,
const uChar dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putuIntV ( uInt  rownr,
const uInt dataPtr 
) [protected, virtual]
virtual void casa::DataManagerColumn::putuShortV ( uInt  rownr,
const uShort dataPtr 
) [protected, virtual]
void casa::DataManagerColumn::setColumnName ( const String colName) [inline]

Set the column name.

Definition at line 979 of file DataManager.h.

References colName_p.

void casa::DataManagerColumn::setFixedShapeColumn ( const IPosition shape) [inline]

Set the shape of all (fixed-shaped) arrays in the column.

Effectively it is the same as setShapeColumn, but it also sets the isFixedShape_p flag.

Definition at line 641 of file DataManager.h.

References isFixedShape_p, setShapeColumn(), and casa::True.

void casa::DataManagerColumn::setIsFixedShape ( Bool  isFixedShape) [inline]

Set the isFixedShape flag.

Definition at line 611 of file DataManager.h.

References isFixedShape(), and isFixedShape_p.

virtual void casa::DataManagerColumn::setMaxLength ( uInt  maxLength) [virtual]

Set the maximum length of the value (can be used for strings).

By default the maximum length is ignored.

Reimplemented in casa::SSMColumn, casa::SSMIndColumn, and casa::SSMDirColumn.

virtual void casa::DataManagerColumn::setShape ( uInt  rownr,
const IPosition shape 
) [virtual]
virtual void casa::DataManagerColumn::setShapeColumn ( const IPosition shape) [private, virtual]
virtual void casa::DataManagerColumn::setShapeTiled ( uInt  rownr,
const IPosition shape,
const IPosition tileShape 
) [virtual]

Set the shape and tile shape of an (variable-shaped) array in the given row.

By default it ignores the tile shape (thus only sets the shape).

Reimplemented in casa::TSMDataColumn.

virtual IPosition casa::DataManagerColumn::shape ( uInt  rownr) [virtual]

Throw an "invalid operation" exception for the default implementation of get.

Referenced by casa::VirtScaCol_global_functions_getVirtualScalarColumn::getVirtualScalarColumn().

Throw an "invalid operation" exception for the default implementation of put.

Referenced by casa::VirtScaCol_global_functions_getVirtualScalarColumn::putVirtualScalarColumn().


Member Data Documentation

Definition at line 1026 of file DataManager.h.

Referenced by columnCache(), and columnCachePtr().

Reimplemented in casa::ForwardColumn.

Definition at line 1025 of file DataManager.h.

Referenced by columnName(), and setColumnName().

     

Definition at line 1024 of file DataManager.h.

Referenced by isFixedShape(), setFixedShapeColumn(), and setIsFixedShape().


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