28 #ifndef CASA_SLICER_2_H
29 #define CASA_SLICER_2_H
A Vector of integers, for indexing into Array<T> objects.
void fillEndLen()
Define a private constructor taking an ssize_t.
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)
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.
std::string to_string(const IPosition &ip)
size_t nelements() const
The number of elements in this IPosition.
LengthOrLast
Define the possible interpretations of the end-value.
const IPosition & length() const
Report the length of the resulting axes.
size_t ndim() const
Return the number of dimensions of the Slicer.
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.
bool isFixed() const
Are all values fixed (i.e., no MimicSource given)?
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...
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.
bool operator==(const Slicer &) const
Equality.