Go to the documentation of this file.
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Arrays/IPosition.h>
Slicer(ssize_t)
Define a private constructor taking an ssize_t.
const IPosition & end() const
Report the defined ending position.
Slicer(const Slice &x, const Slice &y, LengthOrLast endInterpretation=endIsLength)
Create a Slicer for a 2-dim array.
Slicer(const IPosition &start, const IPosition &end, const IPosition &stride, LengthOrLast endInterpretation=endIsLength)
The member function inferShapeFromSource (invoked as a callback by the source array) will use the sha...
const IPosition & length() const
Report the length of the resulting axes.
Slicer & operator=(const Slicer &)
Assignment (copy semantics).
Bool isFixed() const
Are all values fixed (i.e., no MimicSource given)?
void setStart(const IPosition &start)
Set the start and end positions.
const IPosition & stride() const
Report the defined stride.
void fillFixed()
Fill the fixed flag.
Slicer(const Slice &x, const Slice &y, const Slice &z, LengthOrLast endInterpretation=endIsLength)
Create a Slicer for a 3-dim array.
Slicer(const IPosition &start, const IPosition &end, LengthOrLast endInterpretation=endIsLength)
void fillEndLen()
Check the given start, end/length and stride.
uInt ndim() const
Return the number of dimensions of the Slicer.
IO functions for Slicer's
Slicer()
Construct a 1-dimensional Slicer.
void setEnd(const IPosition &end)
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.
const IPosition & start() const
Report the defined starting position.
Slicer(const Slicer &)
Copy constructor (copy semantics).
this file contains all the compiler specific defines
Bool operator==(const Slicer &) const
Equality.
uInt nelements() const
The number of elements in this IPosition.
void fillSlice(const Slice &, ssize_t &start, ssize_t &length, ssize_t &stride)
Fill in start, len and stride from a Slice.
@ endIsLength
The end-values given in the constructor define the lengths.
LengthOrLast
Define the possible interpretations of the end-value.
@ endIsLast
The end-values given in the constructor define the trc.
bool Bool
Define the standard types used by Casacore.
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...
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
Slicer(const IPosition &start)
Slicer(const Slice &x, LengthOrLast endInterpretation=endIsLength)
Create a Slicer object from Slice objects.
std::ostream & operator<<(std::ostream &stream, const Slicer &slicer)
Print the contents of the specified Slicer to the specified stream.