28 #ifndef TABLES_TSMSHAPE_H
29 #define TABLES_TSMSHAPE_H
A Vector of integers, for indexing into Array<T> objects.
Int operator()(uInt index) const
Index into the TSMShape.
Bool conform(const IPosition &other) const
conform returns true if nelements() == other.nelements().
size_t offset(const IPosition &position) const
Calculate the offset for a given position.
uInt nelements() const
The number of elements in this TSMShape.
TSMShape & operator=(const TSMShape &that)
Assignment (copy semantics).
TSMShape()
A zero-length TSMShape.
bool Bool
Define the standard types used by Casacore.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
virtual Origin origin() const =0
ABSTRACT METHODS //.
IPosition position(size_t offset) const
Calculate the position for a given offset.
Expanded IPosition for shapes.
IPosition offsetIncrement(const IPosition &subShape) const
Calculate the increments when stepping through an array in a linear way.
Bool conform(const TSMShape &other) const
conform returns true if nelements() == other.nelements().
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.