Go to the documentation of this file.
28 #ifndef TABLES_ISMINDEX_H
29 #define TABLES_ISMINDEX_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Containers/Block.h>
100 uInt& bucketNrrow)
const;
125 uInt& bucketNr)
const;
128 void show (std::ostream&)
const;
AipsIO is the object persistency mechanism of Casacore
Bool nextBucketNr(uInt &cursor, uInt &bucketStartRow, uInt &bucketNrrow, uInt &bucketNr) const
Get the number of the next bucket from the index and return it in bucketNr.
ISMIndex & operator=(const ISMIndex &)
Forbid assignment.
void addRow(uInt nrrow)
Add a row.
Block< uInt > rows_p
Rownr index (i.e.
ISMIndex(ISMBase *parent)
Create a ISMIndex object with the given parent for a new table.
The Index of the Incremental Storage Manager.
this file contains all the compiler specific defines
void get(AipsIO &os)
Read the bucket index from the AipsIO object.
void addBucketNr(uInt rownr, uInt bucketNr)
Add a bucket number to the index.
void put(AipsIO &os)
Write the bucket index into the AipsIO object.
Int removeRow(uInt rownr)
Remove a row from the index.
uInt getIndex(uInt rownr) const
Get the index of the bucket containing the given row.
uInt nused_p
Number of entries used.
Base class of the Incremental Storage Manager.
~ISMIndex()
The destructor closes the file (if opened).
void show(std::ostream &) const
Show the index.
bool Bool
Define the standard types used by Casacore.
ISMIndex(const ISMIndex &)
Forbid copy constructor.
ISMBase * stmanPtr_p
Pointer to the parent storage manager.
uInt getBucketNr(uInt rownr, uInt &bucketStartRow, uInt &bucketNrrow) const
Get the bucket number for the given row.
Block< uInt > bucketNr_p
Corresponding bucket number.