13 #ifndef __IndexRange_H__ 14 #define __IndexRange_H__ 67 template <
int num_dimensions>
68 class IndexRange :
public VectorWithOffset<IndexRange<num_dimensions - 1>>
71 typedef VectorWithOffset<IndexRange<num_dimensions - 1>> base_type;
94 inline size_t size_all()
const;
111 inline bool is_regular()
const;
126 mutable is_regular_type is_regular_range;
135 inline IndexRange(
const int min,
const int max);
142 inline int get_min_index()
const;
143 inline int get_max_index()
const;
144 inline int get_length()
const;
146 inline size_t size_all()
const;
151 inline bool is_regular()
const;
156 inline void resize(
const int min_index,
const int max_index);
A templated class for vectors, but with indices starting not from 0.
Definition: ArrayFilter1DUsingConvolution.h:31
base_type::iterator iterator
typedefs such that we do not need to have typename wherever we use iterators
Definition: IndexRange.h:75
This file declares class stir::BasicCoordinate and some functions acting on stir::BasicCoordinate obj...
inline definitions for the IndexRange class
defines the stir::VectorWithOffset class
The (simple) 1 dimensional specialisation of IndexRange.
Definition: IndexRange.h:131