Audio Processing Framework (APF) version 0.5.0
|
Iterator with a built-in number. More...
#include <apf/iterator.h>
Public Types | |
using | iterator_category = std::random_access_iterator_tag |
using | value_type = T |
using | reference = T |
using | difference_type = T |
using | pointer = void |
Public Member Functions | |
index_iterator (T start=T()) | |
Constructor. More... | |
reference | operator* () const |
Dereference operator. More... | |
bool | operator== (const self &rhs) const |
Straightforward equality operator. More... | |
self & | operator++ () |
Straightforward preincrement operator. More... | |
self & | operator-- () |
Straightforward predecrement operator. More... | |
self & | operator+= (difference_type n) |
Straightforward addition/assignment operator. More... | |
reference | operator[] (difference_type n) const |
Straightforward subscript operator (using + and dereference op). 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... | |
Friends | |
difference_type | operator- (const self &lhs, const self &rhs) |
Straightforward difference operator. More... | |
bool | operator< (const self &lhs, const self &rhs) |
Straightforward less-than operator. More... | |
bool | operator> (const self &lhs, const self &rhs) |
Straightforward greater-than operator (using less-than operator). More... | |
bool | operator<= (const self &lhs, const self &rhs) |
Straightforward less-or-equal operator (using less-than operator). More... | |
bool | operator>= (const self &lhs, const self &rhs) |
Straightforward greater-or-equal operator (using less-than operator). More... | |
self | operator+ (difference_type n, const self &it) |
Addition operator (integer plus iterator, using +=). More... | |
Iterator with a built-in number.
This can be used, for example, as a base iterator in transform_iterator.
T | type of the number |
T
is an unsigned type, strange things may happen! Definition at line 985 of file iterator.h.
using apf::index_iterator< T >::iterator_category = std::random_access_iterator_tag |
Definition at line 991 of file iterator.h.
using apf::index_iterator< T >::value_type = T |
Definition at line 992 of file iterator.h.
using apf::index_iterator< T >::reference = T |
Definition at line 993 of file iterator.h.
using apf::index_iterator< T >::difference_type = T |
Definition at line 994 of file iterator.h.
using apf::index_iterator< T >::pointer = void |
Definition at line 995 of file iterator.h.
|
inlineexplicit |
|
inline |
|
inline |
Straightforward equality operator.
Definition at line 1007 of file iterator.h.
|
inline |
Straightforward preincrement operator.
Definition at line 1008 of file iterator.h.
|
inline |
Straightforward predecrement operator.
Definition at line 1009 of file iterator.h.
|
inline |
Straightforward addition/assignment operator.
Definition at line 1010 of file iterator.h.
|
inline |
Straightforward subscript operator (using + and dereference op).
Definition at line 1013 of file iterator.h.
|
inline |
Unequality operator (using equality operator).
Definition at line 1014 of file iterator.h.
|
inline |
Postincrement operator (using preincrement operator).
Definition at line 1016 of file iterator.h.
|
inline |
Postdecrement operator (using predecrement operator).
Definition at line 1017 of file iterator.h.
|
inline |
Addition operator (iterator plus integer, using +=).
Definition at line 1018 of file iterator.h.
|
inline |
Subtraction/assignment operator (using +=).
Definition at line 1018 of file iterator.h.
|
inline |
Subtraction operator (using +=).
Definition at line 1018 of file iterator.h.
Straightforward difference operator.
Definition at line 1011 of file iterator.h.
Straightforward less-than operator.
Definition at line 1012 of file iterator.h.
Straightforward greater-than operator (using less-than operator).
Definition at line 1015 of file iterator.h.
Straightforward less-or-equal operator (using less-than operator).
Definition at line 1015 of file iterator.h.
Straightforward greater-or-equal operator (using less-than operator).
Definition at line 1015 of file iterator.h.
Addition operator (integer plus iterator, using +=).
Definition at line 1018 of file iterator.h.