28 #ifndef TABLES_MSMCOLUMN_H
29 #define TABLES_MSMCOLUMN_H
168 virtual void remove (
rownr_t rownr);
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
virtual void putuShort(rownr_t rownr, const uShort *dataPtr)
virtual void putInt(rownr_t rownr, const Int *dataPtr)
Non-templated base class for templated Array class.
virtual void getdouble(rownr_t rownr, double *dataPtr)
std::complex< Float > Complex
virtual void getString(rownr_t rownr, String *dataPtr)
virtual void putuInt(rownr_t rownr, const uInt *dataPtr)
AipsIO is the object persistency mechanism of Casacore.
virtual void getBool(rownr_t rownr, Bool *dataPtr)
Get a scalar value in the given row.
virtual void getuShort(rownr_t rownr, uShort *dataPtr)
virtual void putString(rownr_t rownr, const String *dataPtr)
virtual void getShort(rownr_t rownr, Short *dataPtr)
virtual void addRow(rownr_t newNrrow, rownr_t oldNrrow)
Add (newNrrow-oldNrrow) rows to the column.
Base class for memory-based table storage manager class.
virtual void getComplex(rownr_t rownr, Complex *dataPtr)
Block< rownr_t > ncum_p
The cumulative nr of rows in all extensions.
MSMColumn(MSMBase *smptr, int dataType, Bool byPtr)
Create a column of the given type.
Base table column storage manager class.
virtual void putDComplex(rownr_t rownr, const DComplex *dataPtr)
virtual ~MSMColumn()
Frees up the storage.
Block< void * > data_p
The assembly of all extensions (actually Block<T*>).
void deleteAll()
Delete all extensions.
void * allocData(rownr_t nrval, Bool byPtr)
Allocate an extension with the data type of the column.
rownr_t nralloc_p
The number of allocated rows in the column.
virtual Bool ok() const
Check if the class invariants still hold.
virtual void reopenRW()
Reopen the storage manager files for read/write.
virtual void putComplex(rownr_t rownr, const Complex *dataPtr)
virtual void getFile(rownr_t nrval, AipsIO &)
Make it possible to read the column data.
std::complex< Double > DComplex
virtual void initData(void *datap, rownr_t nrval)
Initialize the data (after an open).
void deleteData(void *datap, Bool byPtr)
Delete an extension.
virtual void putFile(rownr_t nrval, AipsIO &)
Make it possible to write the column data.
virtual void putBool(rownr_t rownr, const Bool *dataPtr)
Put a scalar value into the given row.
virtual int dataType() const
Return the data type of the column.
virtual void getInt(rownr_t rownr, Int *dataPtr)
void putArrayPtr(rownr_t rownr, void *dataPtr)
Put the pointer for the given row.
virtual void putfloat(rownr_t rownr, const float *dataPtr)
bool Bool
Define the standard types used by Casacore.
virtual void getfloat(rownr_t rownr, float *dataPtr)
uInt nrext_p
The nr of extensions in use.
virtual void getScalarColumnV(ArrayBase &data)
Get all scalar values in the column.
Column in the Memory table storage manager class.
virtual void getInt64(rownr_t rownr, Int64 *dataPtr)
MSMColumn & operator=(const MSMColumn &)
Forbid assignment.
uInt findExt(rownr_t rownr, Bool setCache)
Find the extension in which the row number is.
void * getArrayPtr(rownr_t rownr)
Get the pointer for the given row.
uInt64 rownr_t
Define the type of a row number in a table.
virtual void putdouble(rownr_t rownr, const double *dataPtr)
virtual void getuChar(rownr_t rownr, uChar *dataPtr)
String: the storage and methods of handling collections of characters.
void resize(rownr_t nrval)
Resize the data blocks.
virtual void doCreate(rownr_t nrrow)
Create the number of rows in a new table.
virtual void getDComplex(rownr_t rownr, DComplex *dataPtr)
virtual void putuChar(rownr_t rownr, const uChar *dataPtr)
virtual void putShort(rownr_t rownr, const Short *dataPtr)
virtual void putScalarColumnV(const ArrayBase &data)
Put all scalar values in the column.
void removeData(void *datap, rownr_t inx, rownr_t nrvalAfter)
Remove an entry (i.e.
virtual void getuInt(rownr_t rownr, uInt *dataPtr)
virtual void putInt64(rownr_t rownr, const Int64 *dataPtr)
Bool byPtr_p
The data is indirectly accessed via a pointer (for the derived classes).