casa
$Rev:20696$
|
AipsIO table column storage manager class. More...
#include <StManAipsIO.h>
Public Member Functions | |
StManColumnAipsIO (StManAipsIO *stMan, int dataType, Bool byPtr) | |
Create a column of the given type. | |
virtual | ~StManColumnAipsIO () |
Frees up the storage. | |
void | getBoolV (uInt rownr, Bool *dataPtr) |
Get a scalar value in the given row. | |
void | getuCharV (uInt rownr, uChar *dataPtr) |
void | getShortV (uInt rownr, Short *dataPtr) |
void | getuShortV (uInt rownr, uShort *dataPtr) |
void | getIntV (uInt rownr, Int *dataPtr) |
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 | getStringV (uInt rownr, String *dataPtr) |
void | putBoolV (uInt rownr, const Bool *dataPtr) |
Put a scalar value into the given row. | |
void | putuCharV (uInt rownr, const uChar *dataPtr) |
void | putShortV (uInt rownr, const Short *dataPtr) |
void | putuShortV (uInt rownr, const uShort *dataPtr) |
void | putIntV (uInt rownr, const Int *dataPtr) |
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 | putStringV (uInt rownr, const String *dataPtr) |
uInt | getBlockBoolV (uInt rownr, uInt nrmax, Bool *dataPtr) |
Get scalars from the given row on with a maximum of nrmax values. | |
uInt | getBlockuCharV (uInt rownr, uInt nrmax, uChar *dataPtr) |
uInt | getBlockShortV (uInt rownr, uInt nrmax, Short *dataPtr) |
uInt | getBlockuShortV (uInt rownr, uInt nrmax, uShort *dataPtr) |
uInt | getBlockIntV (uInt rownr, uInt nrmax, Int *dataPtr) |
uInt | getBlockuIntV (uInt rownr, uInt nrmax, uInt *dataPtr) |
uInt | getBlockfloatV (uInt rownr, uInt nrmax, float *dataPtr) |
uInt | getBlockdoubleV (uInt rownr, uInt nrmax, double *dataPtr) |
uInt | getBlockComplexV (uInt rownr, uInt nrmax, Complex *dataPtr) |
uInt | getBlockDComplexV (uInt rownr, uInt nrmax, DComplex *dataPtr) |
uInt | getBlockStringV (uInt rownr, uInt nrmax, String *dataPtr) |
void | putBlockBoolV (uInt rownr, uInt nrmax, const Bool *dataPtr) |
Put nrmax scalars from the given row on. | |
void | putBlockuCharV (uInt rownr, uInt nrmax, const uChar *dataPtr) |
void | putBlockShortV (uInt rownr, uInt nrmax, const Short *dataPtr) |
void | putBlockuShortV (uInt rownr, uInt nrmax, const uShort *dataPtr) |
void | putBlockIntV (uInt rownr, uInt nrmax, const Int *dataPtr) |
void | putBlockuIntV (uInt rownr, uInt nrmax, const uInt *dataPtr) |
void | putBlockfloatV (uInt rownr, uInt nrmax, const float *dataPtr) |
void | putBlockdoubleV (uInt rownr, uInt nrmax, const double *dataPtr) |
void | putBlockComplexV (uInt rownr, uInt nrmax, const Complex *dataPtr) |
void | putBlockDComplexV (uInt rownr, uInt nrmax, const DComplex *dataPtr) |
void | putBlockStringV (uInt rownr, uInt nrmax, const String *dataPtr) |
virtual void | getScalarColumnCellsBoolV (const RefRows &rownrs, Vector< Bool > *dataPtr) |
Get the scalar values in some cells of the column. | |
virtual void | getScalarColumnCellsuCharV (const RefRows &rownrs, Vector< uChar > *dataPtr) |
virtual void | getScalarColumnCellsShortV (const RefRows &rownrs, Vector< Short > *dataPtr) |
virtual void | getScalarColumnCellsuShortV (const RefRows &rownrs, Vector< uShort > *dataPtr) |
virtual void | getScalarColumnCellsIntV (const RefRows &rownrs, Vector< Int > *dataPtr) |
virtual void | getScalarColumnCellsuIntV (const RefRows &rownrs, Vector< uInt > *dataPtr) |
virtual void | getScalarColumnCellsfloatV (const RefRows &rownrs, Vector< float > *dataPtr) |
virtual void | getScalarColumnCellsdoubleV (const RefRows &rownrs, Vector< double > *dataPtr) |
virtual void | getScalarColumnCellsComplexV (const RefRows &rownrs, Vector< Complex > *dataPtr) |
virtual void | getScalarColumnCellsDComplexV (const RefRows &rownrs, Vector< DComplex > *dataPtr) |
virtual void | getScalarColumnCellsStringV (const RefRows &rownrs, Vector< String > *dataPtr) |
virtual void | addRow (uInt newNrrow, uInt oldNrrow) |
Add (newNrrow-oldNrrow) rows to the column. | |
void | resize (uInt nrval) |
Resize the data blocks. | |
virtual void | remove (uInt rownr) |
Remove the given row. | |
virtual void | doCreate (uInt nrrow) |
Create the number of rows in a new table. | |
virtual void | putFile (uInt nrval, AipsIO &) |
Write the column data into AipsIO. | |
virtual void | getFile (uInt nrval, AipsIO &) |
Read the column data from AipsIO. | |
virtual void | reopenRW () |
Reopen the storage manager files for read/write. | |
virtual Bool | ok () const |
Check if the class invariants still hold. | |
Protected Member Functions | |
uInt | findExt (uInt rownr, Bool setCache) |
Find the extension in which the row number is. | |
uInt | nextExt (void *&ext, uInt &extnr, uInt nrmax) const |
Get the next extension. | |
void * | allocData (uInt nrval, Bool byPtr) |
Allocate an extension with the data type of the column. | |
void | deleteAll () |
Delete all extensions. | |
void | deleteData (void *datap, Bool byPtr) |
Delete an extension. | |
void | removeData (void *datap, uInt inx, uInt nrvalAfter) |
Remove an entry (i.e. | |
virtual void | putData (void *datap, uInt nrval, AipsIO &) |
Put the data (nrval elements) in an extension (starting at datap) into AipsIO. | |
virtual void | getData (void *datap, uInt index, uInt nrval, AipsIO &, uInt version) |
Get data (nrval elements) into an extension (starting at datap plus the given index). | |
void * | getArrayPtr (uInt rownr) |
Get the pointer for the given row. | |
void | putArrayPtr (uInt rownr, void *dataPtr) |
Put the pointer for the given row. | |
Protected Attributes | |
StManAipsIO * | stmanPtr_p |
The storage manager. | |
int | dtype_p |
The data type (for caching purposes). | |
Bool | byPtr_p |
The data is indirectly accessed via a pointer (for the derived classes). | |
uInt | nralloc_p |
The number of allocated rows in the column. | |
uInt | nrext_p |
The nr of extensions in use. | |
Block< void * > | data_p |
The assembly of all extensions (actually Block<T*>). | |
Block< uInt > | ncum_p |
The cumulative nr of rows in all extensions. | |
Private Member Functions | |
StManColumnAipsIO (const StManColumnAipsIO &) | |
Forbid copy constructor. | |
StManColumnAipsIO & | operator= (const StManColumnAipsIO &) |
Forbid assignment. |
AipsIO table column storage manager class.
Internal
StManColumnAipsIO handles a column for an AipsIO storage manager.
StManColumnAipsIO is used by StManAipsIO to handle the access to the data in a table column. It is an storage manager based on AipsIO. The entire column is kept in memory and only written when the storage manager closes. When the storage manager gets opened, the entire column gets read back. It fully supports addition and removal of rows.
StManColumnAipsIO serves 2 purposes:
StManColumnAipsIO does not hold a column as a consecutive array, because extending the column (i.e. adding rows) proofed be too expensive due to the repeated copying involved when creating a table (this method was used by the old table system). Instead it has a number of data blocks (extensions) indexed to by a super block. Accessing a row means finding the appropriate extension via a binary search. Because there is only 1 extension when a table is read back, the overhead in finding a row is small.
StManColumnAipsIO handles the standard data types. The class is not templated, but a switch statement is used instead. Templates would cause too many instantiations.
Definition at line 106 of file StManAipsIO.h.
casa::StManColumnAipsIO::StManColumnAipsIO | ( | StManAipsIO * | stMan, |
int | dataType, | ||
Bool | byPtr | ||
) |
Create a column of the given type.
It will maintain a pointer to its parent storage manager.
virtual casa::StManColumnAipsIO::~StManColumnAipsIO | ( | ) | [virtual] |
Frees up the storage.
casa::StManColumnAipsIO::StManColumnAipsIO | ( | const StManColumnAipsIO & | ) | [private] |
Forbid copy constructor.
virtual void casa::StManColumnAipsIO::addRow | ( | uInt | newNrrow, |
uInt | oldNrrow | ||
) | [virtual] |
Add (newNrrow-oldNrrow) rows to the column.
Reimplemented in casa::StManColumnIndArrayAipsIO, and casa::StManColumnArrayAipsIO.
void* casa::StManColumnAipsIO::allocData | ( | uInt | nrval, |
Bool | byPtr | ||
) | [protected] |
Allocate an extension with the data type of the column.
void casa::StManColumnAipsIO::deleteAll | ( | ) | [protected] |
Delete all extensions.
Possible underlying data (as used by StManArrayColumnAipsIO) will not be deleted and should have been deleted beforehand.
void casa::StManColumnAipsIO::deleteData | ( | void * | datap, |
Bool | byPtr | ||
) | [protected] |
Delete an extension.
virtual void casa::StManColumnAipsIO::doCreate | ( | uInt | nrrow | ) | [virtual] |
Create the number of rows in a new table.
This is used when a table gets created.
Reimplemented in casa::StManColumnIndArrayAipsIO.
uInt casa::StManColumnAipsIO::findExt | ( | uInt | rownr, |
Bool | setCache | ||
) | [protected] |
Find the extension in which the row number is.
If the flag is true, it also sets the columnCache object.
void* casa::StManColumnAipsIO::getArrayPtr | ( | uInt | rownr | ) | [protected] |
Get the pointer for the given row.
This is for the derived classes like StManArrayColumnAipsIO.
uInt casa::StManColumnAipsIO::getBlockBoolV | ( | uInt | rownr, |
uInt | nrmax, | ||
Bool * | dataPtr | ||
) | [virtual] |
Get scalars from the given row on with a maximum of nrmax values.
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 buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ScalarColumn get function).
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockComplexV | ( | uInt | rownr, |
uInt | nrmax, | ||
Complex * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockDComplexV | ( | uInt | rownr, |
uInt | nrmax, | ||
DComplex * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockdoubleV | ( | uInt | rownr, |
uInt | nrmax, | ||
double * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockfloatV | ( | uInt | rownr, |
uInt | nrmax, | ||
float * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockIntV | ( | uInt | rownr, |
uInt | nrmax, | ||
Int * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockShortV | ( | uInt | rownr, |
uInt | nrmax, | ||
Short * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockStringV | ( | uInt | rownr, |
uInt | nrmax, | ||
String * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockuCharV | ( | uInt | rownr, |
uInt | nrmax, | ||
uChar * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockuIntV | ( | uInt | rownr, |
uInt | nrmax, | ||
uInt * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
uInt casa::StManColumnAipsIO::getBlockuShortV | ( | uInt | rownr, |
uInt | nrmax, | ||
uShort * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::getBoolV | ( | uInt | rownr, |
Bool * | 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::StManColumnAipsIO::getComplexV | ( | uInt | rownr, |
Complex * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
virtual void casa::StManColumnAipsIO::getData | ( | void * | datap, |
uInt | index, | ||
uInt | nrval, | ||
AipsIO & | , | ||
uInt | version | ||
) | [protected, virtual] |
Get data (nrval elements) into an extension (starting at datap plus the given index).
Reimplemented in casa::StManColumnIndArrayAipsIO, and casa::StManColumnArrayAipsIO.
void casa::StManColumnAipsIO::getDComplexV | ( | uInt | rownr, |
DComplex * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::getdoubleV | ( | uInt | rownr, |
double * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
virtual void casa::StManColumnAipsIO::getFile | ( | uInt | nrval, |
AipsIO & | |||
) | [virtual] |
Read the column data from AipsIO.
One extension gets allocated to hold all rows in the column.
Reimplemented in casa::StManColumnArrayAipsIO, and casa::StManColumnIndArrayAipsIO.
void casa::StManColumnAipsIO::getfloatV | ( | uInt | rownr, |
float * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::getIntV | ( | uInt | rownr, |
Int * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsBoolV | ( | const RefRows & | rownrs, |
Vector< Bool > * | dataPtr | ||
) | [virtual] |
Get the scalar values in some cells of the column.
The buffer pointed to by dataPtr has to have the correct length. (which is guaranteed by the ScalarColumn getColumnCells function). The default implementation loops through all rows.
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsComplexV | ( | const RefRows & | rownrs, |
Vector< Complex > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsDComplexV | ( | const RefRows & | rownrs, |
Vector< DComplex > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsdoubleV | ( | const RefRows & | rownrs, |
Vector< double > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsfloatV | ( | const RefRows & | rownrs, |
Vector< float > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsIntV | ( | const RefRows & | rownrs, |
Vector< Int > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsShortV | ( | const RefRows & | rownrs, |
Vector< Short > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsStringV | ( | const RefRows & | rownrs, |
Vector< String > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsuCharV | ( | const RefRows & | rownrs, |
Vector< uChar > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsuIntV | ( | const RefRows & | rownrs, |
Vector< uInt > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
virtual void casa::StManColumnAipsIO::getScalarColumnCellsuShortV | ( | const RefRows & | rownrs, |
Vector< uShort > * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::getShortV | ( | uInt | rownr, |
Short * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::getStringV | ( | uInt | rownr, |
String * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::getuCharV | ( | uInt | rownr, |
uChar * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::getuIntV | ( | uInt | rownr, |
uInt * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::getuShortV | ( | uInt | rownr, |
uShort * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
uInt casa::StManColumnAipsIO::nextExt | ( | void *& | ext, |
uInt & | extnr, | ||
uInt | nrmax | ||
) | const [protected] |
Get the next extension.
For the first iteration extnr should be zero. It returns the number of values in it until the maximum is reached. Zero means no more extensions.
virtual Bool casa::StManColumnAipsIO::ok | ( | ) | const [virtual] |
Check if the class invariants still hold.
Reimplemented in casa::StManColumnArrayAipsIO, and casa::StManColumnIndArrayAipsIO.
StManColumnAipsIO& casa::StManColumnAipsIO::operator= | ( | const StManColumnAipsIO & | ) | [private] |
Forbid assignment.
void casa::StManColumnAipsIO::putArrayPtr | ( | uInt | rownr, |
void * | dataPtr | ||
) | [protected] |
Put the pointer for the given row.
This is for the derived classes like StManArrayColumnAipsIO.
void casa::StManColumnAipsIO::putBlockBoolV | ( | uInt | rownr, |
uInt | nrmax, | ||
const Bool * | dataPtr | ||
) | [virtual] |
Put nrmax scalars from the given row on.
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 buffer pointed to by dataPtr has to have the correct length (which is guaranteed by the ScalarColumn put function).
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockComplexV | ( | uInt | rownr, |
uInt | nrmax, | ||
const Complex * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockDComplexV | ( | uInt | rownr, |
uInt | nrmax, | ||
const DComplex * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockdoubleV | ( | uInt | rownr, |
uInt | nrmax, | ||
const double * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockfloatV | ( | uInt | rownr, |
uInt | nrmax, | ||
const float * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockIntV | ( | uInt | rownr, |
uInt | nrmax, | ||
const Int * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockShortV | ( | uInt | rownr, |
uInt | nrmax, | ||
const Short * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockStringV | ( | uInt | rownr, |
uInt | nrmax, | ||
const String * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockuCharV | ( | uInt | rownr, |
uInt | nrmax, | ||
const uChar * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockuIntV | ( | uInt | rownr, |
uInt | nrmax, | ||
const uInt * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBlockuShortV | ( | uInt | rownr, |
uInt | nrmax, | ||
const uShort * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::StManColumn.
void casa::StManColumnAipsIO::putBoolV | ( | uInt | rownr, |
const Bool * | 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::StManColumnAipsIO::putComplexV | ( | uInt | rownr, |
const Complex * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
virtual void casa::StManColumnAipsIO::putData | ( | void * | datap, |
uInt | nrval, | ||
AipsIO & | |||
) | [protected, virtual] |
Put the data (nrval elements) in an extension (starting at datap) into AipsIO.
Reimplemented in casa::StManColumnIndArrayAipsIO, and casa::StManColumnArrayAipsIO.
void casa::StManColumnAipsIO::putDComplexV | ( | uInt | rownr, |
const DComplex * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::putdoubleV | ( | uInt | rownr, |
const double * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
virtual void casa::StManColumnAipsIO::putFile | ( | uInt | nrval, |
AipsIO & | |||
) | [virtual] |
Write the column data into AipsIO.
It will successively write all extensions using putData.
Reimplemented in casa::StManColumnArrayAipsIO, and casa::StManColumnIndArrayAipsIO.
void casa::StManColumnAipsIO::putfloatV | ( | uInt | rownr, |
const float * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::putIntV | ( | uInt | rownr, |
const Int * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::putShortV | ( | uInt | rownr, |
const Short * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::putStringV | ( | uInt | rownr, |
const String * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::putuCharV | ( | uInt | rownr, |
const uChar * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::putuIntV | ( | uInt | rownr, |
const uInt * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
void casa::StManColumnAipsIO::putuShortV | ( | uInt | rownr, |
const uShort * | dataPtr | ||
) | [virtual] |
Reimplemented from casa::DataManagerColumn.
virtual void casa::StManColumnAipsIO::remove | ( | uInt | rownr | ) | [virtual] |
Remove the given row.
If no rows remain in the extension, the extension is also removed.
Reimplemented in casa::StManColumnArrayAipsIO, and casa::StManColumnIndArrayAipsIO.
void casa::StManColumnAipsIO::removeData | ( | void * | datap, |
uInt | inx, | ||
uInt | nrvalAfter | ||
) | [protected] |
Remove an entry (i.e.
a row) from an extension at the given index. It will do this by shifting the rest (nrvalAfter elements) one position to the left.
virtual void casa::StManColumnAipsIO::reopenRW | ( | ) | [virtual] |
Reopen the storage manager files for read/write.
Reimplemented in casa::StManColumnIndArrayAipsIO.
void casa::StManColumnAipsIO::resize | ( | uInt | nrval | ) |
Resize the data blocks.
This adds an extension when needed.
Bool casa::StManColumnAipsIO::byPtr_p [protected] |
The data is indirectly accessed via a pointer (for the derived classes).
Definition at line 253 of file StManAipsIO.h.
Block<void*> casa::StManColumnAipsIO::data_p [protected] |
The assembly of all extensions (actually Block<T*>).
Definition at line 259 of file StManAipsIO.h.
int casa::StManColumnAipsIO::dtype_p [protected] |
The data type (for caching purposes).
Reimplemented from casa::StManColumn.
Definition at line 251 of file StManAipsIO.h.
Block<uInt> casa::StManColumnAipsIO::ncum_p [protected] |
The cumulative nr of rows in all extensions.
Definition at line 261 of file StManAipsIO.h.
uInt casa::StManColumnAipsIO::nralloc_p [protected] |
The number of allocated rows in the column.
Definition at line 255 of file StManAipsIO.h.
uInt casa::StManColumnAipsIO::nrext_p [protected] |
The nr of extensions in use.
Definition at line 257 of file StManAipsIO.h.
StManAipsIO* casa::StManColumnAipsIO::stmanPtr_p [protected] |
The storage manager.
Definition at line 249 of file StManAipsIO.h.