28 #ifndef TABLES_CONCATROWS_H
29 #define TABLES_CONCATROWS_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/tables/Tables/RefRows.h>
34 #include <casacore/casa/Containers/Block.h>
void resize(size_t n, Bool forceSmaller=False, Bool copyElements=True)
Resizes the Block.
Class to iterate through a ConcatRows object.
RefRows getChunk() const
Get the current chunk.
ConcatRowsIter(const ConcatRows &, rownr_t start, rownr_t end, rownr_t incr=1)
Construct the iterator on a ConcatRows object for the given row range.
void operator++()
Go the next chunk.
uInt tableNr() const
Get the nr of the table the current chunk is in.
const ConcatRows * itsRows
ConcatRowsIter(const ConcatRows &)
Construct the iterator on a ConcatRows object.
Vector< rownr_t > itsChunk
Bool pastEnd() const
Is the iterator past the end?
rownr_t operator[](uInt i) const
Give the nr of rows for the i-th table.
ConcatRows()
Construct an empty block.
void reserve(uInt ntable)
Reserve the block for the given nr of tables.
uInt ntable() const
Give the nr of tables.
rownr_t offset(uInt i) const
Give the offset for the i-th table.
void mapRownr(uInt &tableNr, rownr_t &tabRownr, rownr_t rownr) const
Map an overall row number to a table and row number.
void add(rownr_t nrow)
Add a table with the given nr of rows.
rownr_t nrow() const
Get the total nr of rows.
void findRownr(rownr_t rownr) const
Find the row number and fill in the lastXX_p values.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
uInt64 rownr_t
Define the type of a row number in a table.