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);
A Vector of integers, for indexing into Array<T> objects.
bool all() const
Was the entire range of indices on this axis selected?
A 1-D Specialization of the Array class.
define a (start,length,increment) along an axis
size_t end() const
Attempt to report the last element of the slice.
size_t inc() const
Report the defined increment.
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.
size_t start() const
Report the selected starting position.
static IPosition checkSlices(Vector< Vector< Slice > > &slices, Slicer &first, const IPosition &shape)
Check a vector of slices.
Slice()
The entire range of indices on the axis is desired.
size_t length() const
Report the defined length.