|
ape
0.5.0
Audio Programming Environment
|
LegacyForwardIterator with capability of iterating N steps around a flat source with an offset. In other words, if exceeding the "end" of any referenced container, it will wrap around and start from the beginning again.
#include <misc.h>
Public Types | |
| using | value_type = T |
| using | difference_type = std::ptrdiff_t |
| using | reference = value_type & |
| using | pointer = T * |
| using | iterator_category = std::forward_iterator_tag |
| using | this_type = circular_iterator< T > |
Public Member Functions | |
| reference | operator* () noexcept |
| this_type | operator++ (int) noexcept |
| this_type & | operator++ () noexcept |
| pointer | operator-> () noexcept |
| this_type | operator-- (int) noexcept |
| this_type & | operator-- () noexcept |
Friends | |
| template<typename Container > | |
| auto | cyclic_begin (Container &c, std::size_t offset) |
| Constructs a suitable beginning iterator of a cyclic iteration on c . Iteration effectively wraps around, until it compares equal to something returned by cyclic_end. More... | |
| template<typename Container > | |
| auto | cyclic_end (Container &c, std::size_t offset, std::size_t length) |
| Specifies an "end" to cyclic_begin More... | |
| bool | operator== (circular_iterator< T > left, circular_iterator< T > right) |
| bool | operator!= (circular_iterator< T > left, circular_iterator< T > right) |
LegacyForwardIterator with capability of iterating N steps around a flat source with an offset. In other words, if exceeding the "end" of any referenced container, it will wrap around and start from the beginning again.
| using ape::circular_iterator< T >::difference_type = std::ptrdiff_t |
| using ape::circular_iterator< T >::iterator_category = std::forward_iterator_tag |
| using ape::circular_iterator< T >::pointer = T* |
| using ape::circular_iterator< T >::reference = value_type& |
| using ape::circular_iterator< T >::this_type = circular_iterator<T> |
| using ape::circular_iterator< T >::value_type = T |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
friend |
Constructs a suitable beginning iterator of a cyclic iteration on c . Iteration effectively wraps around, until it compares equal to something returned by cyclic_end.
| c | Any "container" supporting size() and data() |
| offset | Where to start in c . |
|
friend |
Specifies an "end" to cyclic_begin
| c | Any "container" supporting size() and data() |
| offset | Where to start in c . Must match the parameter given to cyclic_begin! |
| length | How many iterations to be performed before the pair compares equal. |
|
friend |
|
friend |
1.8.16