28 #ifndef TABLES_ISMCOLUMN_H 
   29 #define TABLES_ISMCOLUMN_H 
  308           const char* data, 
uInt lenData,
 
  321           const char* data, 
uInt lenData,
 
  332     static size_t fromString (
void* out, 
const void* in, 
size_t n,
 
  334     static size_t toString (
void* out, 
const void* in, 
size_t n,
 
  336     static size_t writeStringBE (
void* out, 
const void* in, 
size_t n);
 
  337     static size_t readStringBE (
void* out, 
const void* in, 
size_t n);
 
  338     static size_t writeStringLE (
void* out, 
const void* in, 
size_t n);
 
  339     static size_t readStringLE (
void* out, 
const void* in, 
size_t n);
 
  385     return rownr < startRow_p  ||  rownr > 
endRow_p;
 
A Vector of integers, for indexing into Array<T> objects. 
 
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size) 
 
virtual void doCreate(ISMBucket *)
Let the column object initialize itself for a newly created table. 
 
uInt colnr_p
Column sequence number of this column. 
 
Non-templated base class for templated Array class. 
 
virtual void putuShort(rownr_t rownr, const uShort *dataPtr)
 
Conversion::ValueFunction * readFunc_p
Pointer to a convert function for reading. 
 
virtual void getString(rownr_t rownr, String *dataPtr)
 
std::complex< Float > Complex
 
void putScaCol(const Vector< Bool > &)
 
virtual IPosition shape(rownr_t rownr)
Get the shape of the array in the given row. 
 
static size_t writeStringLE(void *out, const void *in, size_t n)
 
void replaceData(ISMBucket *bucket, rownr_t bucketStartRow, rownr_t bucketNrrow, rownr_t bucketRownr, uInt &offset, const char *data, uInt lenData, Bool canSplit=True)
Replace a value at the given offset in the bucket. 
 
virtual void getfloat(rownr_t rownr, float *dataPtr)
 
Bool addData(ISMBucket *bucket, rownr_t bucketStartRow, rownr_t bucketNrrow, rownr_t bucketRownr, uInt inx, const char *data, uInt lenData, Bool afterLastRow=False, Bool canSplit=True)
Add a value at the given index in the bucket. 
 
virtual void handleCopy(rownr_t rownr, const char *value)
Give a derived class the opportunity to react on the duplication of a value. 
 
uInt typeSize_p
The size of the data type in local format. 
 
void putValue(rownr_t rownr, const void *value)
Put the value for this row. 
 
virtual void getScalarColumnCellsV(const RefRows &rownrs, ArrayBase &dataPtr)
Get the scalar values in some cells of the column. 
 
static size_t toString(void *out, const void *in, size_t n, Conversion::ValueFunction *readLeng)
 
rownr_t startRow_p
Cache for interval for which last value read is valid. 
 
void init()
Initialize part of the object. 
 
void resync(rownr_t nrrow)
Resync the storage manager with the new file contents. 
 
Base table column storage manager class. 
 
virtual Bool flush(rownr_t nrrow, Bool fsync)
Flush and optionally fsync the data. 
 
virtual void putuChar(rownr_t rownr, const uChar *dataPtr)
 
static size_t fromString(void *out, const void *in, size_t n, Conversion::ValueFunction *writeLeng)
Handle a String in copying to/from external format. 
 
virtual void putString(rownr_t rownr, const String *dataPtr)
 
uInt nelements() const 
Get the nr of elements in this data value. 
 
virtual void getScalarColumnV(ArrayBase &dataPtr)
Get the scalar values in the entire column. 
 
void getScaColCells(const RefRows &, Vector< Bool > &)
 
static size_t readStringLE(void *out, const void *in, size_t n)
 
virtual void getArrayV(rownr_t rownr, ArrayBase &dataPtr)
Get an array value in the given row. 
 
IPosition shape_p
The shape of the column. 
 
void putFromRow(rownr_t rownr, const char *data, uInt lenData)
Put the value in all buckets from the given row on. 
 
virtual void putBool(rownr_t rownr, const Bool *dataPtr)
Put a scalar value in the given row. 
 
static Conversion::ValueFunction * getReaduInt(Bool asCanonical)
Get the function needed to read/write a uInt and rownr from/to external format. 
 
Base class of the Incremental Storage Manager. 
 
virtual void putDComplex(rownr_t rownr, const DComplex *dataPtr)
 
Conversion::ValueFunction * writeFunc_p
Pointer to a convert function for writing. 
 
virtual void putInt64(rownr_t rownr, const Int64 *dataPtr)
 
void getScaCol(Vector< Bool > &)
 
static Conversion::ValueFunction * getReadRownr(Bool asCanonical)
 
ObjCompareFunc * compareFunc_p
Pointer to a compare function. 
 
virtual void putShort(rownr_t rownr, const Short *dataPtr)
 
virtual void handleRemove(rownr_t rownr, const char *value)
Give a derived class the opportunity to react on the removal of a value. 
 
virtual void setShapeColumn(const IPosition &shape)
Set the shape of an array in the column. 
 
std::complex< Double > DComplex
 
virtual void reopenRW()
Let the column reopen its data files for read/write access. 
 
Class holding the row numbers in a RefTable. 
 
virtual void getInt(rownr_t rownr, Int *dataPtr)
 
virtual int dataType() const 
Return the data type of the column. 
 
uInt fixedLength_p
Length of column cell value in storage format (0 = variable length). 
 
bool Bool
Define the standard types used by Casacore. 
 
static Conversion::ValueFunction * getWriteRownr(Bool asCanonical)
 
virtual void getFile(rownr_t nrrow)
Let the column object initialize itself for an existing table. 
 
virtual void putComplex(rownr_t rownr, const Complex *dataPtr)
 
static Conversion::ValueFunction * getWriteuInt(Bool asCanonical)
 
virtual void getBool(rownr_t rownr, Bool *dataPtr)
Get a scalar value in the given row. 
 
virtual void getuChar(rownr_t rownr, uChar *dataPtr)
 
ISMColumn & operator=(const ISMColumn &)
Forbid assignment. 
 
A Column in the Incremental Storage Manager. 
 
virtual void putuInt(rownr_t rownr, const uInt *dataPtr)
 
virtual void putArrayV(rownr_t rownr, const ArrayBase &dataPtr)
Put an array value in the given row. 
 
virtual void getdouble(rownr_t rownr, double *dataPtr)
 
static size_t writeStringBE(void *out, const void *in, size_t n)
 
virtual Bool compareValue(const void *val1, const void *val2) const 
Compare the values. 
 
uInt getFixedLength() const 
Get the fixed length of the data value in a cell of this column (0 = variable length). 
 
void getValue(rownr_t rownr, void *value, Bool setCache)
Get the value for this row. 
 
A bucket in the Incremental Storage Manager. 
 
uInt64 rownr_t
Define the type of a row number in a table. 
 
void putData(ISMBucket *bucket, rownr_t bucketStartRow, rownr_t bucketNrrow, rownr_t bucketRownr, const char *data, uInt lenData, Bool afterLastRow, Bool canSplit)
Put a data value into the bucket. 
 
virtual void getDComplex(rownr_t rownr, DComplex *dataPtr)
 
virtual uInt ndim(rownr_t rownr)
Get the dimensionality of the item in the given row. 
 
Bool isLastValueInvalid(rownr_t rownr)
Test if the last value is invalid for this row. 
 
uInt nrelem_p
Number of elements in a value for this column. 
 
String: the storage and methods of handling collections of characters. 
 
void clear()
Clear the object (used by destructor and init). 
 
void handleSplit(ISMBucket &bucket, const Block< Bool > &duplicated)
Handle the duplicated values after a bucket split. 
 
virtual void putfloat(rownr_t rownr, const float *dataPtr)
 
virtual void getuInt(rownr_t rownr, uInt *dataPtr)
 
virtual void getuShort(rownr_t rownr, uShort *dataPtr)
 
rownr_t lastRowPut_p
The last row for which a value has been put. 
 
static size_t readStringBE(void *out, const void *in, size_t n)
 
uInt nrcopy_p
Number of values to be copied. 
 
virtual void putdouble(rownr_t rownr, const double *dataPtr)
 
virtual void addRow(rownr_t newNrrow, rownr_t oldNrrow)
Add (newNrrow-oldNrrow) rows to the column and initialize the new rows when needed. 
 
virtual void getInt64(rownr_t rownr, Int64 *dataPtr)
 
virtual void getShort(rownr_t rownr, Short *dataPtr)
 
virtual void getComplex(rownr_t rownr, Complex *dataPtr)
 
ISMBase * stmanPtr_p
Pointer to the parent storage manager. 
 
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask. 
 
virtual void putScalarColumnV(const ArrayBase &dataPtr)
Put the scalar values into the entire column. 
 
ISMColumn(ISMBase *parent, int dataType, uInt colnr)
Create a ISMColumn object with the given parent. 
 
size_t ValueFunction(void *to, const void *from, size_t nvalues)
Define the signature of a function converting nvalues values from internal to external format or vice...
 
virtual void putInt(rownr_t rownr, const Int *dataPtr)