33 #include <casacore/casa/aips.h> 34 #include <casacore/casa/Arrays/IPosition.h> A Vector of integers, for indexing into Array<T> objects.
uInt ndim() const
Return the number of dimensions of the Slicer.
void fillEndLen()
Check the given start, end/length and stride.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
const IPosition & end() const
Report the defined ending position.
The end-values given in the constructor define the lengths.
void setEnd(const IPosition &end)
Bool isFixed() const
Are all values fixed (i.e., no MimicSource given)?
void setStart(const IPosition &start)
Set the start and end positions.
define a (start,length,increment) along an axis
void fillFixed()
Fill the fixed flag.
Slicer & operator=(const Slicer &)
Assignment (copy semantics).
bool Bool
Define the standard types used by Casacore.
LengthOrLast
Define the possible interpretations of the end-value.
const IPosition & length() const
Report the length of the resulting axes.
const IPosition & start() const
Report the defined starting position.
const IPosition & stride() const
Report the defined stride.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
Specify which elements to extract from an n-dimensional array.
Slicer()
Construct a 1-dimensional Slicer.
IPosition inferShapeFromSource(const IPosition &shape, IPosition &startResult, IPosition &endResult, IPosition &strideResult) const
This function checks all of the start, length (or end), and stride IPositions, and fills in missing v...
uInt nelements() const
The number of elements in this IPosition.
Bool operator==(const Slicer &) const
Equality.
this file contains all the compiler specific defines
The end-values given in the constructor define the trc.
void fillSlice(const Slice &, ssize_t &start, ssize_t &length, ssize_t &stride)
Fill in start, len and stride from a Slice.