Go to the documentation of this file.
28 #ifndef TABLES_SCARECORDCOLDATA_H
29 #define TABLES_SCARECORDCOLDATA_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/tables/Tables/PlainColumn.h>
40 class ScalarRecordColumnDesc;
42 template<
class T>
class Vector;
121 virtual void get (
uInt rownr,
void*)
const;
132 void* dataPtr)
const;
137 virtual void put (
uInt rownr,
const void* dataPtr);
148 const void* dataPtr);
155 const void*& dataSave);
160 const void*& dataSave);
169 virtual void allocIterBuf (
void*& lastVal,
void*& curVal,
173 virtual void freeIterBuf (
void*& lastVal,
void*& curVal);
virtual Bool canAccessScalarColumn(Bool &reask) const
Ask if the data manager can handle a column.
virtual void createDataManagerColumn()
Create a data manager column object for this column.
AipsIO is the object persistency mechanism of Casacore
virtual void allocIterBuf(void *&lastVal, void *&curVal, CountedPtr< BaseCompare > &cmpObj)
Allocate value buffers for the table iterator.
virtual void freeIterBuf(void *&lastVal, void *&curVal)
Free the value buffers allocated by allocIterBuf.
virtual void putScalarColumn(const void *dataPtr)
Put the array of all values in the column.
~ScalarRecordColumnData()
A hierarchical collection of named fields of various types.
ScalarRecordColumnData(const ScalarRecordColumnDesc *, ColumnSet *)
Construct a scalar column object from the given description in the given column set.
Referenced counted pointer for constant data.
const ScalarRecordColumnDesc * scaDescPtr_p
Pointer to column description.
virtual void putFileDerived(AipsIO &)
Write the column data.
Class to define columns of scalar records in tables.
virtual void getFileDerived(AipsIO &, const ColumnSet &)
Read the column data back.
virtual void putScalarColumnCells(const RefRows &rownrs, const void *dataPtr)
Put the array of some values in the column (on behalf on RefColumn).
Class to manage a set of table columns.
void putRecord(uInt rownr, const TableRecord &rec)
virtual void freeSortKey(const void *&dataSave)
Free storage on the heap allocated by makeSortkey().
Class holding the row numbers in a RefTable.
virtual void initialize(uInt startRownr, uInt endRownr)
Initialize the rows from startRownr till endRownr (inclusive) with the default value defined in the c...
virtual Bool isDefined(uInt rownr) const
Test if the given cell contains a defined value.
virtual void put(uInt rownr, const void *dataPtr)
Put the value in a particular cell.
virtual Bool canAccessScalarColumnCells(Bool &reask) const
Ask if the data manager can handle some cells in a column.
ScalarRecordColumnData & operator=(const ScalarRecordColumnData &)
Assignment cannot be used.
this file contains all the compiler specific defines
virtual void get(uInt rownr, void *) const
Get the value from a particular cell.
Sort on one or more keys, ascending and/or descending.
virtual void getScalarColumnCells(const RefRows &rownrs, void *dataPtr) const
Get the array of some values in the column (on behalf of RefColumn).
bool Bool
Define the standard types used by Casacore.
Base class for a column in a plain table.
Access to a table column containing scalar records.
virtual void makeSortKey(Sort &, CountedPtr< BaseCompare > &cmpObj, Int order, const void *&dataSave)
Add this column and its data to the Sort object.
void getRecord(uInt rownr, TableRecord &rec) const
Handle getting and putting a record.
virtual void getScalarColumn(void *dataPtr) const
Get the array of all values in the column.
virtual void makeRefSortKey(Sort &, CountedPtr< BaseCompare > &cmpObj, Int order, const Vector< uInt > &rownrs, const void *&dataSave)
Do it only for the given row numbers.