#include <StrideIterPack_StrideIter.hpp>
typedefs | |
| typedef std::random_access_iterator_tag | iterator_category |
| | |
| typedef T_iterator_type | iterator_type |
| | |
| typedef T_value_type | value_type |
| | |
| typedef T_reference_type | reference |
| | |
| typedef T_pointer_type | pointer |
| | |
| typedef T_difference_type | difference_type |
| | |
Constructors. Uses default copy constructor and assignment operator | |
| stride_iter () | |
| constructs to a null iterator | |
| stride_iter (iterator_type current) | |
| constructs to the standard iterator (behaves as) (increment 1). Allows conversion from iterator. | |
| stride_iter (iterator_type current, difference_type stride) | |
| constructs to the desired sliced iterator | |
| template<class Iter, class Val, class Ref, class Ptr, class Diff> | |
| stride_iter (const stride_iter< Iter, Val, Ref, Ptr, Diff > &rhs) | |
| convert type of iterators (mainly for non-const to const) | |
| template<class Iter, class Val, class Ref, class Ptr, class Diff> | |
| stride_iter & | operator= (const stride_iter< Iter, Val, Ref, Ptr, Diff > &rhs) |
| assign different types of iterators (mainly for non-const to const) | |
Access | |
| reference | operator * () const |
| | |
| pointer | operator-> () const |
| | |
| reference | operator[] (difference_type n) const |
| | |
Incrementation | |
| stride_iter & | operator++ () |
| ++itr | |
| const stride_iter | operator++ (int) |
| itr++ | |
| stride_iter & | operator-- () |
| --itr | |
| const stride_iter | operator-- (int) |
| itr-- | |
| stride_iter | operator+ (difference_type n) |
| itr + n | |
| const stride_iter | operator+ (difference_type n) const |
| itr + n | |
| stride_iter & | operator+= (difference_type n) |
| itr += n | |
| stride_iter | operator- (difference_type n) |
| itr - n | |
| const stride_iter | operator- (difference_type n) const |
| itr - n | |
| stride_iter & | operator-= (difference_type n) |
| itr -= n | |
Implimentation access | |
| iterator_type | current () const |
| | |
| difference_type | stride () const |
| | |
Public Member Functions | |
| difference_type | operator- (const stride_iter &itr) const |
| distance = itr1 - itr2 (distance between elements) | |
Random access iterator adaptor for non-unit strides. This iterator does not have any range checking for maximum efficency. It was desinged with the purpose of allowing a slice from an array (BLAS matrix row) to be used. It, however can be used with any random access iterator. There are several non-member functions that can be used with this class.
Definition at line 46 of file StrideIterPack_StrideIter.hpp.
|
|||||
|
Definition at line 52 of file StrideIterPack_StrideIter.hpp. |
|
|||||
|
Definition at line 54 of file StrideIterPack_StrideIter.hpp. |
|
|||||
|
Definition at line 56 of file StrideIterPack_StrideIter.hpp. |
|
|||||
|
Definition at line 58 of file StrideIterPack_StrideIter.hpp. |
|
|||||
|
Definition at line 60 of file StrideIterPack_StrideIter.hpp. |
|
|||||
|
Definition at line 62 of file StrideIterPack_StrideIter.hpp. |
|
|||||||||
|
constructs to a null iterator
Definition at line 70 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
constructs to the standard iterator (behaves as) (increment 1). Allows conversion from iterator.
Definition at line 73 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||||||||
|
constructs to the desired sliced iterator
Definition at line 76 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||||||
|
convert type of iterators (mainly for non-const to const)
Definition at line 80 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||||||
|
assign different types of iterators (mainly for non-const to const)
Definition at line 84 of file StrideIterPack_StrideIter.hpp. |
|
|||||||||
|
Definition at line 94 of file StrideIterPack_StrideIter.hpp. |
|
|||||||||
|
Definition at line 98 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
Definition at line 102 of file StrideIterPack_StrideIter.hpp. |
|
|||||||||
|
++itr
Definition at line 112 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
itr++
Definition at line 117 of file StrideIterPack_StrideIter.hpp. |
|
|||||||||
|
--itr
Definition at line 122 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
itr--
Definition at line 127 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
itr + n
Definition at line 132 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
itr + n
Definition at line 136 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
itr += n
Definition at line 140 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
itr - n
Definition at line 145 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
itr - n
Definition at line 149 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
itr -= n
Definition at line 153 of file StrideIterPack_StrideIter.hpp. |
|
||||||||||
|
distance = itr1 - itr2 (distance between elements)
Definition at line 161 of file StrideIterPack_StrideIter.hpp. |
|
|||||||||
|
Definition at line 169 of file StrideIterPack_StrideIter.hpp. |
|
|||||||||
|
Definition at line 174 of file StrideIterPack_StrideIter.hpp. |
1.3.9.1