26 namespace astrotypes {
28 template<
typename Dimension>
30 : _start_index(start_index)
31 , _span(end_index - start_index + 1)
35 template<
typename Dimension>
37 : _start_index(start_index)
42 template<
typename Dimension>
49 template<
typename Dimension>
52 if(_start_index >= bounds) {
58 if(_span > delta) _span = delta;
A tagged dimensionIndex variable.
Defines a contiguous range over dimension in index.
DimensionSpan(DimensionIndex< Dimension > start_index, DimensionIndex< Dimension > end_index)
A compile time dimesion tagging of size_t.
DimensionSpan< Dimension > & trim(DimensionSize< Dimension > bounds)
ensure the span fits within the size provided