35 size_t _stride, _range;
43 StrideView(T *ptr =
nullptr,
size_t stride = 1,
size_t range = 0);
62#include "CNum/DataStructs/Views/StrideView.tpp"
63#include "CNum/DataStructs/Views/StrideIterator.tpp"
A bit mask used for representing subsets of elements in a container.
Definition BinaryMask.h:22
Definition StrideView.h:8
StrideIterator & operator++()
Increment iterator.
Definition StrideView.h:14
bool operator!=(const StrideIterator &other)
Does not equal comparison (by address).
Definition StrideView.h:21
StrideIterator(T *ptr=nullptr, size_t stride=1)
Overloaded default constructor.
Definition StrideView.h:3
T operator*()
Dereference iterator.
Definition StrideView.h:8
StrideIterator< T > begin() const
Get an iterator to the beginning of a view.
Definition StrideView.h:11
BinaryMask operator<=(T val)
Create a binary mask of values less than or equal to another.
Definition StrideView.h:19
StrideView(T *ptr=nullptr, size_t stride=1, size_t range=0)
Overloaded default constructor.
Definition StrideView.h:3
StrideIterator< T > end() const
Get an iterator to the end of the view.
Definition StrideView.h:15
size_t size() const
Get the number of elements in the stride view (n_strides in the view).
Definition StrideView.h:24
The views for CNum DataStructs.
Definition StrideView.h:6