28 #ifndef TABLES_TSMSHAPE_H
29 #define TABLES_TSMSHAPE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/IPosition.h>
bool conform(const IPosition &other) const
conform returns true if nelements() == other.nelements().
TSMShape(const TSMShape &that)
Copy constructor (copy semantics).
size_t offset(const IPosition &position, const IPosition &origin) const
size_t offset(const IPosition &position) const
Calculate the offset for a given position.
TSMShape()
A zero-length TSMShape.
IPosition offsetIncrement(const IPosition &subShape) const
Calculate the increments when stepping through an array in a linear way.
TSMShape & operator=(const TSMShape &that)
Assignment (copy semantics).
IPosition position(size_t offset, const IPosition &origin) const
uInt nelements() const
The number of elements in this TSMShape.
IPosition position(size_t offset) const
Calculate the position for a given offset.
IPosition offsetIncrement(const IPosition &subShape, const IPosition &stride) const
TSMShape(const IPosition &shape)
Construct from a shape and precalculate some values.
Bool conform(const TSMShape &other) const
conform returns true if nelements() == other.nelements().
Int operator()(uInt index) const
Index into the TSMShape.
this file contains all the compiler specific defines
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
bool Bool
Define the standard types used by Casacore.