23 template<
typename VecType,
typename ScalarType>
56 int skipIn=1) :
data(dataIn),
108 template<
typename ScalarType>
117 template<
typename ScalarType>
126 template<
typename VectorType,
typename ScalarType>
135 dataIn.
skip * skipIn);
Enables a subset of a vector to be easily accessed or reversed without copying memory.
ScalarType operator()(int i) const
void CheckBounds(int i) const
VectorSlice< VecType, ScalarType > & operator=(VectorSlice< VecType, ScalarType > const &vec)
unsigned int size() const
VectorSlice(VectorSlice< VecType, ScalarType > const &vec)
VectorSlice(VecType &dataIn, int startIndIn, int endIndIn, int skipIn=1)
ScalarType & operator[](int i)
ScalarType & operator()(int i)
ScalarType operator[](int i) const
VectorSlice< std::vector< ScalarType >, ScalarType > GetSlice(std::vector< ScalarType > &dataIn, int startIndIn, int endIndIn, int skipIn=1)