Audio Processing Framework (APF) version 0.5.0
|
A stride iterator. More...
#include <apf/iterator.h>
Type Definitions from the Underlying Iterator | |
using | iterator_category = typename std::iterator_traits< I >::iterator_category |
Base iterator. More... | |
using | value_type = typename std::iterator_traits< I >::value_type |
Base iterator. More... | |
using | difference_type = typename std::iterator_traits< I >::difference_type |
Base iterator. More... | |
using | reference = typename std::iterator_traits< I >::reference |
Base iterator. More... | |
using | pointer = typename std::iterator_traits< I >::pointer |
Base iterator. More... | |
stride_iterator (I base_iterator, difference_type step) | |
This is the normal constructor. More... | |
stride_iterator (stride_iterator< I > base_iterator, difference_type step) | |
Create a stride iterator from another stride iterator. More... | |
stride_iterator () | |
Default constructor. More... | |
bool | operator== (const self &rhs) const |
Base iterator. More... | |
self & | operator++ () |
Base iterator. More... | |
self & | operator-- () |
Base iterator. More... | |
reference | operator[] (difference_type n) const |
Base iterator. More... | |
self & | operator+= (difference_type n) |
Base iterator. More... | |
reference | operator* () const |
Straightforward dereference operator. More... | |
pointer | operator-> () const |
Straightforward arrow operator. More... | |
bool | operator!= (const self &rhs) const |
Unequality operator (using equality operator). More... | |
self | operator++ (int) |
Postincrement operator (using preincrement operator). More... | |
self | operator-- (int) |
Postdecrement operator (using predecrement operator). More... | |
self | operator+ (difference_type n) const |
Addition operator (iterator plus integer, using +=). More... | |
self & | operator-= (difference_type n) |
Subtraction/assignment operator (using +=). More... | |
self | operator- (difference_type n) const |
Subtraction operator (using +=). More... | |
I | base () const |
Get the base iterator, inspired by std::reverse_iterator::base(). More... | |
difference_type | step_size () const |
Get step size. More... | |
difference_type | operator- (const self &lhs, const self &rhs) |
Base iterator. More... | |
bool | operator< (const self &lhs, const self &rhs) |
Base iterator. More... | |
bool | operator<= (const self &lhs, const self &rhs) |
Base iterator. More... | |
bool | operator> (const self &lhs, const self &rhs) |
Base iterator. More... | |
bool | operator>= (const self &lhs, const self &rhs) |
Base iterator. More... | |
self | operator+ (difference_type n, const self &it) |
Addition operator (integer plus iterator, using +=). More... | |
A stride iterator.
I | Base iterator type |
Most of the code is taken from the C++ Cookbook, recipe 11.13: http://flylib.com/books/en/2.131.1.171/1/
Some modifications are based on this: http://stackoverflow.com/questions/1649529/sorting-blocks-of-l-elements/1649650#1649650
Definition at line 1050 of file iterator.h.
using apf::stride_iterator< I >::iterator_category = typename std::iterator_traits<I>::iterator_category |
Base iterator.
Definition at line 1058 of file iterator.h.
using apf::stride_iterator< I >::value_type = typename std::iterator_traits<I>::value_type |
Base iterator.
Definition at line 1060 of file iterator.h.
using apf::stride_iterator< I >::difference_type = typename std::iterator_traits<I>::difference_type |
Base iterator.
Definition at line 1061 of file iterator.h.
using apf::stride_iterator< I >::reference = typename std::iterator_traits<I>::reference |
Base iterator.
Definition at line 1062 of file iterator.h.
using apf::stride_iterator< I >::pointer = typename std::iterator_traits<I>::pointer |
Base iterator.
Definition at line 1063 of file iterator.h.
|
inlineexplicit |
This is the normal constructor.
base_iterator | the base iterator |
step | the step size |
Definition at line 1069 of file iterator.h.
|
inline |
Create a stride iterator from another stride iterator.
base_iterator | the base (stride) iterator |
step | the step size (in addition to the already present step size) |
Definition at line 1081 of file iterator.h.
|
inline |
Default constructor.
Definition at line 1089 of file iterator.h.
|
inline |
Base iterator.
Definition at line 1095 of file iterator.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Straightforward dereference operator.
Definition at line 1177 of file iterator.h.
|
inline |
Straightforward arrow operator.
Definition at line 1178 of file iterator.h.
|
inline |
Unequality operator (using equality operator).
Definition at line 1179 of file iterator.h.
|
inline |
Postincrement operator (using preincrement operator).
Definition at line 1180 of file iterator.h.
|
inline |
Postdecrement operator (using predecrement operator).
Definition at line 1181 of file iterator.h.
|
inline |
Addition operator (iterator plus integer, using +=).
Definition at line 1182 of file iterator.h.
|
inline |
Subtraction/assignment operator (using +=).
Definition at line 1182 of file iterator.h.
|
inline |
Subtraction operator (using +=).
Definition at line 1182 of file iterator.h.
|
inline |
Get the base iterator, inspired by std::reverse_iterator::base().
Definition at line 1184 of file iterator.h.
|
inline |
Get step size.
Definition at line 1187 of file iterator.h.
|
friend |
Base iterator.
Definition at line 1133 of file iterator.h.
Base iterator.
Definition at line 1141 of file iterator.h.
Base iterator.
Definition at line 1150 of file iterator.h.
Base iterator.
Definition at line 1160 of file iterator.h.
Base iterator.
Definition at line 1169 of file iterator.h.
|
friend |
Addition operator (integer plus iterator, using +=).
Definition at line 1182 of file iterator.h.