casa::DataManagerColumn Class Reference
[Tables_internal_classes]

#include <DataManager.h>

Inheritance diagram for casa::DataManagerColumn:

Inheritance graph
[legend]
Collaboration diagram for casa::DataManagerColumn:

Collaboration graph
[legend]
List of all members.

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

To Do

Definition at line 532 of file DataManager.h.

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.
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.
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.

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
ColumnCache colCache_p


Constructor & Destructor Documentation

casa::DataManagerColumn::DataManagerColumn (  )  [inline]

Create a column.

Definition at line 537 of file DataManager.h.

virtual casa::DataManagerColumn::~DataManagerColumn (  )  [virtual]

Frees up the storage.

casa::DataManagerColumn::DataManagerColumn ( const DataManagerColumn  )  [private]

The copy constructor cannot be used for this base class.

The private declaration of this constructor makes it unusable.


Member Function Documentation

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

Set the isFixedShape flag.

Definition at line 544 of file DataManager.h.

References isFixedShape_p.

Bool casa::DataManagerColumn::isFixedShape (  )  const [inline]

Is this a fixed shape column?

Definition at line 548 of file DataManager.h.

References isFixedShape_p.

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

Get the data type of the column as defined in DataType.h.

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.

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

Test if data can be put into this column.

This does not test if the data file is writable, only if it is in principle allowed to store data into the column. (It may not be allowed for virtual columns). The default is True.

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.

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 574 of file DataManager.h.

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

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

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

By default it throws a "not possible" exception.

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).

virtual Bool casa::DataManagerColumn::isShapeDefined ( uInt  rownr  )  [virtual]

Is the value shape defined in the given row? By default it returns True.

virtual uInt casa::DataManagerColumn::ndim ( uInt  rownr  )  [virtual]

Get the dimensionality of the item in the given row.

By default it returns shape(rownr).nelements().

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

Get the shape of the item in the given row.

By default it returns a zero-length IPosition (for a scalar value).

Referenced by setFixedShapeColumn().

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

Can the data manager handle chaging the shape of an existing array? Default is no.

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.

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.

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.

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.

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.

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.

ColumnCache& casa::DataManagerColumn::columnCache (  )  [inline]

Get access to the ColumnCache object.

Definition at line 673 of file DataManager.h.

References colCache_p.

const ColumnCache* casa::DataManagerColumn::columnCachePtr (  )  const [inline]

Definition at line 675 of file DataManager.h.

References colCache_p.

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 687 of file DataManager.h.

References getBoolV().

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

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

Definition at line 689 of file DataManager.h.

References getuCharV().

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

Definition at line 691 of file DataManager.h.

References getShortV().

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

Definition at line 693 of file DataManager.h.

References getuShortV().

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

Definition at line 695 of file DataManager.h.

References getIntV().

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

Definition at line 697 of file DataManager.h.

References getuIntV().

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

Definition at line 699 of file DataManager.h.

References getfloatV().

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

Definition at line 701 of file DataManager.h.

References getdoubleV().

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

Definition at line 703 of file DataManager.h.

References getComplexV().

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

Definition at line 705 of file DataManager.h.

References getDComplexV().

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

Definition at line 707 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 710 of file DataManager.h.

References getOtherV().

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 722 of file DataManager.h.

References putBoolV().

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

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

Definition at line 724 of file DataManager.h.

References putuCharV().

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

Definition at line 726 of file DataManager.h.

References putShortV().

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

Definition at line 728 of file DataManager.h.

References putuShortV().

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

Definition at line 730 of file DataManager.h.

References putIntV().

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

Definition at line 732 of file DataManager.h.

References putuIntV().

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

Definition at line 734 of file DataManager.h.

References putfloatV().

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

Definition at line 736 of file DataManager.h.

References putdoubleV().

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

Definition at line 738 of file DataManager.h.

References putComplexV().

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

Definition at line 740 of file DataManager.h.

References putDComplexV().

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

Definition at line 742 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 745 of file DataManager.h.

References putOtherV().

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

void casa::DataManagerColumn::throwGet (  )  const

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

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

void casa::DataManagerColumn::throwPut (  )  const

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

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

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.

Referenced by get().

virtual void casa::DataManagerColumn::getuCharV ( uInt  rownr,
uChar dataPtr 
) [protected, virtual]

Referenced by get().

virtual void casa::DataManagerColumn::getShortV ( uInt  rownr,
Short dataPtr 
) [protected, virtual]

Referenced by get().

virtual void casa::DataManagerColumn::getuShortV ( uInt  rownr,
uShort dataPtr 
) [protected, virtual]

Referenced by get().

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

Referenced by get().

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

Referenced by get().

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

Referenced by get().

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

Referenced by get().

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

Referenced by get().

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

Referenced by get().

virtual void casa::DataManagerColumn::getStringV ( uInt  rownr,
String dataPtr 
) [protected, virtual]

Referenced by get().

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

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

Referenced by get().

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.

Referenced by put().

virtual void casa::DataManagerColumn::putuCharV ( uInt  rownr,
const uChar dataPtr 
) [protected, virtual]

Referenced by put().

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

Referenced by put().

virtual void casa::DataManagerColumn::putuShortV ( uInt  rownr,
const uShort dataPtr 
) [protected, virtual]

Referenced by put().

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

Referenced by put().

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

Referenced by put().

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

Referenced by put().

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

Referenced by put().

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

Referenced by put().

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

Referenced by put().

virtual void casa::DataManagerColumn::putStringV ( uInt  rownr,
const String dataPtr 
) [protected, virtual]

Referenced by put().

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

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

Referenced by put().

virtual void casa::DataManagerColumn::setShapeColumn ( const IPosition shape  )  [private, virtual]

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

By default it throws a "not possible" exception.

Referenced by setFixedShapeColumn().

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

Assignment cannot be used for this base class.

The private declaration of this operator makes it unusable.


Member Data Documentation

Bool casa::DataManagerColumn::isFixedShape_p [private]

Definition at line 949 of file DataManager.h.

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

ColumnCache casa::DataManagerColumn::colCache_p [private]

Definition at line 950 of file DataManager.h.

Referenced by columnCache(), and columnCachePtr().


The documentation for this class was generated from the following file:
Generated on Mon Sep 1 22:45:22 2008 for NRAOCASA by  doxygen 1.5.1