|
Sunshine master
Self-hosted game stream host for Moonlight.
|
CRTP base that provides iterator operators for round-robin iterators. More...
#include <src/round_robin.h>
Public Member Functions | |
| bool | operator!= (const iterator &other) const |
| Compare whether two wrapped iterator positions differ. | |
| reference | operator* () |
| Dereference the current element in the cycled range. | |
| const_reference | operator* () const |
| Dereference the current element in the cycled range. | |
| iterator | operator+ (diff_t step) |
| Return a copy advanced by a wrapped offset. | |
| iterator | operator++ () |
| Advance to the next element, wrapping back to the beginning when needed. | |
| iterator | operator++ (int) |
| Advance to the next element and return the previous iterator position. | |
| iterator | operator+= (diff_t step) |
| Advance this iterator by repeatedly wrapping at the end of the range. | |
| iterator | operator- (diff_t step) |
| Return a copy moved backward by a wrapped offset. | |
| diff_t | operator- (iterator first) |
| Count wrapped increments needed to reach this iterator from another one. | |
| iterator | operator-- () |
| Move to the previous element, wrapping to the end when needed. | |
| iterator | operator-- (int) |
| Move to the previous element and return the previous iterator position. | |
| iterator | operator-= (diff_t step) |
| Move this iterator backward by repeatedly wrapping at the beginning of the range. | |
| pointer | operator-> () |
| Access the current element in the cycled range. | |
| const_pointer | operator-> () const |
| Access the current element in the cycled range. | |
| bool | operator< (const iterator &other) const |
| Compare whether this wrapped position sorts before another one. | |
| bool | operator<= (const iterator &other) const |
| Compare whether this wrapped position sorts at or before another one. | |
| bool | operator== (const iterator &other) const |
| Compare whether two wrapped iterator positions are equal. | |
| bool | operator> (const iterator &other) const |
| Compare whether this wrapped position sorts after another one. | |
| bool | operator>= (const iterator &other) const |
| Compare whether this wrapped position sorts at or after another one. | |
CRTP base that provides iterator operators for round-robin iterators.
|
inline |
Compare whether two wrapped iterator positions differ.
| other | Iterator position to compare against. |
|
inline |
Dereference the current element in the cycled range.
|
inline |
Dereference the current element in the cycled range.
|
inline |
Return a copy advanced by a wrapped offset.
| step | Number of positions to advance. |
|
inline |
Advance to the next element, wrapping back to the beginning when needed.
|
inline |
Advance to the next element and return the previous iterator position.
|
inline |
Advance this iterator by repeatedly wrapping at the end of the range.
| step | Number of positions to advance. |
|
inline |
Return a copy moved backward by a wrapped offset.
| step | Number of positions to rewind. |
|
inline |
Count wrapped increments needed to reach this iterator from another one.
| first | Iterator used as the starting position. |
first to this iterator.
|
inline |
Move to the previous element, wrapping to the end when needed.
|
inline |
Move to the previous element and return the previous iterator position.
|
inline |
Move this iterator backward by repeatedly wrapping at the beginning of the range.
| step | Number of positions to rewind. |
|
inline |
Access the current element in the cycled range.
|
inline |
Access the current element in the cycled range.
|
inline |
Compare whether this wrapped position sorts before another one.
| other | Iterator position to compare against. |
other.
|
inline |
Compare whether this wrapped position sorts at or before another one.
| other | Iterator position to compare against. |
other.
|
inline |
Compare whether two wrapped iterator positions are equal.
| other | Iterator position to compare against. |
|
inline |
Compare whether this wrapped position sorts after another one.
| other | Iterator position to compare against. |
other.
|
inline |
Compare whether this wrapped position sorts at or after another one.
| other | Iterator position to compare against. |
other.