28 #ifndef TABLES_COLUMNSINDEXARRAY_H
29 #define TABLES_COLUMNSINDEXARRAY_H
242 Bool lowerInclusive,
Bool upperInclusive,
Vector< uInt > getRowNumbers(Bool unique=False)
Find the row numbers matching the key.
ColumnsIndexArray & operator=(const ColumnsIndexArray &that)
Assignment (copy semantics).
uInt bsearch(Bool &found, void *fieldPtr) const
Do a binary search on itsUniqueIndexArray for the key in fieldPtrs.
size_t nelements() const
How many elements does this array have? Product of all axis lengths.
void makeObjects(const RecordDesc &description)
Make the various internal RecordFieldPtr objects.
Main interface class to a read/write table.
Record & accessUpperKey()
ColumnsIndexArray(const Table &, const String &columnName)
Create an index on the given table for the given column.
void fillRowNumbers(Vector< uInt > &rows, uInt start, uInt end, Bool unique) const
Fill the row numbers vector for the given start till end in the itsUniqueIndexArray vector (end is no...
Vector< uInt > itsDataIndex
uInt getRowNumber(Bool &found)
Find the row number matching the key.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
const_iterator end() const
Index to an array column in a table.
Record & accessKey()
Access the key values.
Description of the fields in a record object.
static Int compare(void *fieldPtr, void *dataPtr, Int dataType, Int index)
Compare the key in fieldPtr with the given index entry.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
Bool isUnique() const
Are all keys in the index unique?
void copy(const ColumnsIndexArray &that)
Copy that object to this.
Record & accessLowerKey()
Read/write access to a table column.
void setChanged()
Something has changed in the table, so the index has to be recreated.
const Table & table() const
Get the table for which this index is created.
Vector< uInt > itsUniqueIndex
void fillRownrs(uInt npts, const Block< uInt > &nrel)
Fill the rownrs belonging to each array value.
void readData()
Read the data of the columns forming the index, sort them and form the index.
String: the storage and methods of handling collections of characters.
void deleteObjects()
Delete all data in the object.
void getArray(Vector< uChar > &result, const String &name)
Get the data if the column is an array.
const String & columnName() const
Return the names of the columns forming the index.
void addColumnToDesc(RecordDesc &description, const TableColumn &column)
Add a column to the record description for the keys.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.