MSMDirColumn.h

Classes

MSMDirColumn -- Memory storage manager for table arrays (full description)

class MSMDirColumn: public MSMColumn

Interface

Public Members
MSMDirColumn (MSMBase* smptr, int dataType)
~MSMDirColumn()
Bool canAccessSlice (Bool& reask) const
Bool canAccessArrayColumn (Bool& reask) const
void setShapeColumn (const IPosition& shape)
void addRow (uInt newNrrow, uInt oldNrrow)
uInt ndim (uInt rownr)
IPosition shape (uInt rownr)
void getArrayBoolV (uInt rownr, Array<Bool>* dataPtr)
void getArrayuCharV (uInt rownr, Array<uChar>* dataPtr)
void getArrayShortV (uInt rownr, Array<Short>* dataPtr)
void getArrayuShortV (uInt rownr, Array<uShort>* dataPtr)
void getArrayIntV (uInt rownr, Array<Int>* dataPtr)
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 getArrayStringV (uInt rownr, Array<String>* dataPtr)
void putArrayBoolV (uInt rownr, const Array<Bool>* dataPtr)
void putArrayuCharV (uInt rownr, const Array<uChar>* dataPtr)
void putArrayShortV (uInt rownr, const Array<Short>* dataPtr)
void putArrayuShortV (uInt rownr, const Array<uShort>* dataPtr)
void putArrayIntV (uInt rownr, const Array<Int>* dataPtr)
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)
void putArrayStringV (uInt rownr, const Array<String>* dataPtr)
void getSliceBoolV (uInt rownr, const Slicer&, Array<Bool>* dataPtr)
void getSliceuCharV (uInt rownr, const Slicer&, Array<uChar>* dataPtr)
void getSliceShortV (uInt rownr, const Slicer&, Array<Short>* dataPtr)
void getSliceuShortV (uInt rownr, const Slicer&, Array<uShort>* dataPtr)
void getSliceIntV (uInt rownr, const Slicer&, Array<Int>* dataPtr)
void getSliceuIntV (uInt rownr, const Slicer&, Array<uInt>* dataPtr)
void getSlicefloatV (uInt rownr, const Slicer&, Array<float>* dataPtr)
void getSlicedoubleV (uInt rownr, const Slicer&, Array<double>* dataPtr)
void getSliceComplexV (uInt rownr, const Slicer&, Array<Complex>* dataPtr)
void getSliceDComplexV (uInt rownr, const Slicer&, Array<DComplex>* dataPtr)
void getSliceStringV (uInt rownr, const Slicer&, Array<String>* dataPtr)
void putSliceBoolV (uInt rownr, const Slicer&, const Array<Bool>* dataPtr)
void putSliceuCharV (uInt rownr, const Slicer&, const Array<uChar>* dataPtr)
void putSliceShortV (uInt rownr, const Slicer&, const Array<Short>* dataPtr)
void putSliceuShortV (uInt rownr, const Slicer&, const Array<uShort>* dataPtr)
void putSliceIntV (uInt rownr, const Slicer&, const Array<Int>* dataPtr)
void putSliceuIntV (uInt rownr, const Slicer&, const Array<uInt>* dataPtr)
void putSlicefloatV (uInt rownr, const Slicer&, const Array<float>* dataPtr)
void putSlicedoubleV (uInt rownr, const Slicer&, const Array<double>* dataPtr)
void putSliceComplexV (uInt rownr, const Slicer&, const Array<Complex>* dataPtr)
void putSliceDComplexV (uInt rownr, const Slicer&, const Array<DComplex>* dataPtr)
void putSliceStringV (uInt rownr, const Slicer&, const Array<String>* dataPtr)
void getArrayColumnBoolV (Array<Bool>* dataPtr)
void getArrayColumnuCharV (Array<uChar>* dataPtr)
void getArrayColumnShortV (Array<Short>* dataPtr)
void getArrayColumnuShortV (Array<uShort>* dataPtr)
void getArrayColumnIntV (Array<Int>* dataPtr)
void getArrayColumnuIntV (Array<uInt>* dataPtr)
void getArrayColumnfloatV (Array<float>* dataPtr)
void getArrayColumndoubleV (Array<double>* dataPtr)
void getArrayColumnComplexV (Array<Complex>* dataPtr)
void getArrayColumnDComplexV (Array<DComplex>* dataPtr)
void getArrayColumnStringV (Array<String>* dataPtr)
void putArrayColumnBoolV (const Array<Bool>* dataPtr)
void putArrayColumnuCharV (const Array<uChar>* dataPtr)
void putArrayColumnShortV (const Array<Short>* dataPtr)
void putArrayColumnuShortV (const Array<uShort>* dataPtr)
void putArrayColumnIntV (const Array<Int>* dataPtr)
void putArrayColumnuIntV (const Array<uInt>* dataPtr)
void putArrayColumnfloatV (const Array<float>* dataPtr)
void putArrayColumndoubleV (const Array<double>* dataPtr)
void putArrayColumnComplexV (const Array<Complex>* dataPtr)
void putArrayColumnDComplexV (const Array<DComplex>* dataPtr)
void putArrayColumnStringV (const Array<String>* dataPtr)
void remove (uInt rownr)
void doCreate (uInt nrrow)
Bool ok() const
Private Members
void deleteArray (uInt rownr)
MSMDirColumn (const MSMDirColumn&)
MSMDirColumn& operator= (const MSMDirColumn&)

Description

Review Status

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

Prerequisite

Synopsis

MSMDirColumn handles arrays in a table column. It only keeps them in memory, so they are not persistent.

Member Description

MSMDirColumn (MSMBase* smptr, int dataType)

Create a column of the given type.

~MSMDirColumn()

Frees up the storage.

Bool canAccessSlice (Bool& reask) const

It can handle access to a slice in a cell.

Bool canAccessArrayColumn (Bool& reask) const

It can handle access to an entire column.

void setShapeColumn (const IPosition& shape)

Set the (fixed) shape of the arrays in the entire column.

void addRow (uInt newNrrow, uInt oldNrrow)

Add (newNrrow-oldNrrow) rows to the column. Allocate the data arrays in these rows if the shape is fixed.

uInt ndim (uInt rownr)

Get the dimensionality of the item in the given row. 0 is returned if there is no array.

IPosition shape (uInt rownr)

Get the shape of the array in the given row. An zero-length IPosition is returned if there is no array.

void getArrayBoolV (uInt rownr, Array<Bool>* dataPtr)
void getArrayuCharV (uInt rownr, Array<uChar>* dataPtr)
void getArrayShortV (uInt rownr, Array<Short>* dataPtr)
void getArrayuShortV (uInt rownr, Array<uShort>* dataPtr)
void getArrayIntV (uInt rownr, Array<Int>* dataPtr)
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 getArrayStringV (uInt rownr, Array<String>* dataPtr)

Get an array value in the given row. The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn get function).

void putArrayBoolV (uInt rownr, const Array<Bool>* dataPtr)
void putArrayuCharV (uInt rownr, const Array<uChar>* dataPtr)
void putArrayShortV (uInt rownr, const Array<Short>* dataPtr)
void putArrayuShortV (uInt rownr, const Array<uShort>* dataPtr)
void putArrayIntV (uInt rownr, const Array<Int>* dataPtr)
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)
void putArrayStringV (uInt rownr, const Array<String>* dataPtr)

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

void getSliceBoolV (uInt rownr, const Slicer&, Array<Bool>* dataPtr)
void getSliceuCharV (uInt rownr, const Slicer&, Array<uChar>* dataPtr)
void getSliceShortV (uInt rownr, const Slicer&, Array<Short>* dataPtr)
void getSliceuShortV (uInt rownr, const Slicer&, Array<uShort>* dataPtr)
void getSliceIntV (uInt rownr, const Slicer&, Array<Int>* dataPtr)
void getSliceuIntV (uInt rownr, const Slicer&, Array<uInt>* dataPtr)
void getSlicefloatV (uInt rownr, const Slicer&, Array<float>* dataPtr)
void getSlicedoubleV (uInt rownr, const Slicer&, Array<double>* dataPtr)
void getSliceComplexV (uInt rownr, const Slicer&, Array<Complex>* dataPtr)
void getSliceDComplexV (uInt rownr, const Slicer&, Array<DComplex>* dataPtr)
void getSliceStringV (uInt rownr, const Slicer&, Array<String>* dataPtr)

Get a section of the array in the given row. The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn getSlice function).

void putSliceBoolV (uInt rownr, const Slicer&, const Array<Bool>* dataPtr)
void putSliceuCharV (uInt rownr, const Slicer&, const Array<uChar>* dataPtr)
void putSliceShortV (uInt rownr, const Slicer&, const Array<Short>* dataPtr)
void putSliceuShortV (uInt rownr, const Slicer&, const Array<uShort>* dataPtr)
void putSliceIntV (uInt rownr, const Slicer&, const Array<Int>* dataPtr)
void putSliceuIntV (uInt rownr, const Slicer&, const Array<uInt>* dataPtr)
void putSlicefloatV (uInt rownr, const Slicer&, const Array<float>* dataPtr)
void putSlicedoubleV (uInt rownr, const Slicer&, const Array<double>* dataPtr)
void putSliceComplexV (uInt rownr, const Slicer&, const Array<Complex>* dataPtr)
void putSliceDComplexV (uInt rownr, const Slicer&, const Array<DComplex>* dataPtr)
void putSliceStringV (uInt rownr, const Slicer&, const Array<String>* dataPtr)

Put into a section of the array in the given row. The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn putSlice function).

void getArrayColumnBoolV (Array<Bool>* dataPtr)
void getArrayColumnuCharV (Array<uChar>* dataPtr)
void getArrayColumnShortV (Array<Short>* dataPtr)
void getArrayColumnuShortV (Array<uShort>* dataPtr)
void getArrayColumnIntV (Array<Int>* dataPtr)
void getArrayColumnuIntV (Array<uInt>* dataPtr)
void getArrayColumnfloatV (Array<float>* dataPtr)
void getArrayColumndoubleV (Array<double>* dataPtr)
void getArrayColumnComplexV (Array<Complex>* dataPtr)
void getArrayColumnDComplexV (Array<DComplex>* dataPtr)
void getArrayColumnStringV (Array<String>* dataPtr)

Get all array values in the column. The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn getColumn function).

void putArrayColumnBoolV (const Array<Bool>* dataPtr)
void putArrayColumnuCharV (const Array<uChar>* dataPtr)
void putArrayColumnShortV (const Array<Short>* dataPtr)
void putArrayColumnuShortV (const Array<uShort>* dataPtr)
void putArrayColumnIntV (const Array<Int>* dataPtr)
void putArrayColumnuIntV (const Array<uInt>* dataPtr)
void putArrayColumnfloatV (const Array<float>* dataPtr)
void putArrayColumndoubleV (const Array<double>* dataPtr)
void putArrayColumnComplexV (const Array<Complex>* dataPtr)
void putArrayColumnDComplexV (const Array<DComplex>* dataPtr)
void putArrayColumnStringV (const Array<String>* dataPtr)

Put all arrays in the column. The buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ArrayColumn putColumn function).

void remove (uInt rownr)

Remove the value in the given row.

void doCreate (uInt nrrow)

Let the column create its arrays.

Bool ok() const

Check if the class invariants still hold.

void deleteArray (uInt rownr)

Delete the array in the given row.

MSMDirColumn (const MSMDirColumn&)

Forbid copy constructor.

MSMDirColumn& operator= (const MSMDirColumn&)

Forbid assignment.