28 #ifndef CASA_SLICE_2_H
29 #define CASA_SLICE_2_H
97 Slice(
size_t Start,
size_t Length=1,
size_t Inc=1);
100 Slice(
size_t Start,
size_t End,
size_t Inc,
bool endIsLength);
105 size_t start()
const;
144 : startp(Start), incp(Inc), lengthp(Length)
146 #if defined(AIPS_DEBUG)
153 : startp(Start), incp(Inc), lengthp(endIsLength ? End : 1+(End-Start)/Inc)
155 #if defined(AIPS_DEBUG)
157 assert(End >= Start);
size_t inc() const
Report the defined increment.
size_t end() const
Attempt to report the last element of the slice.
static IPosition checkSlices(Vector< Vector< Slice > > &slices, Slicer &first, const IPosition &shape)
Check a vector of slices.
size_t start() const
Report the selected starting position.
bool all() const
Was the entire range of indices on this axis selected?
Slice()
The entire range of indices on the axis is desired.
size_t length() const
Report the defined length.
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.