#include <ringbuffer.h>
The RingBuffer iterator iterates the underlying BaseArray in correct order starting from _ringPos (for Begin) and might wrap if necessary.
Public Types | |
using | CollectionType = typename ConstIf< RingBuffer, CONSTITERATOR >::type |
using | Type = typename ConstIf< T, CONSTITERATOR >::type |
Public Member Functions | |
IteratorTemplate (CollectionType &a, Int start=0) | |
IteratorTemplate & | operator= (const IteratorTemplate &src) |
operator ConstIterator & () | |
operator Bool () const | |
Type * | GetPtr () const |
Type & | operator* () const |
Type * | operator-> () const |
Bool | operator== (const IteratorTemplate &b) const |
Bool | operator< (const IteratorTemplate &b) const |
MAXON_OPERATOR_COMPARISON (IteratorTemplate) | |
IteratorTemplate & | operator++ () |
const IteratorTemplate | operator++ (int) |
IteratorTemplate & | operator+= (Int i) |
IteratorTemplate | operator+ (Int i) const |
IteratorTemplate & | operator-- () |
const IteratorTemplate | operator-- (int) |
IteratorTemplate & | operator-= (Int i) |
IteratorTemplate | operator- (Int i) const |
Int | operator- (const IteratorTemplate &b) const |
Static Public Attributes | |
static const Bool | isLinearIterator |
Private Attributes | |
CollectionType * | _array |
Int | _index |
using CollectionType = typename ConstIf<RingBuffer, CONSTITERATOR>::type |
|
explicit |
IteratorTemplate& operator= | ( | const IteratorTemplate< CONSTITERATOR > & | src | ) |
operator ConstIterator & | ( | ) |
|
explicit |
Type* GetPtr | ( | void | ) | const |
Type& operator* | ( | ) | const |
Type* operator-> | ( | void | ) | const |
Bool operator== | ( | const IteratorTemplate< CONSTITERATOR > & | b | ) | const |
Bool operator< | ( | const IteratorTemplate< CONSTITERATOR > & | b | ) | const |
MAXON_OPERATOR_COMPARISON | ( | IteratorTemplate< CONSTITERATOR > | ) |
IteratorTemplate& operator++ | ( | ) |
const IteratorTemplate operator++ | ( | int | ) |
IteratorTemplate& operator+= | ( | Int | i | ) |
IteratorTemplate operator+ | ( | Int | i | ) | const |
IteratorTemplate& operator-- | ( | ) |
const IteratorTemplate operator-- | ( | int | ) |
IteratorTemplate& operator-= | ( | Int | i | ) |
IteratorTemplate operator- | ( | Int | i | ) | const |
Int operator- | ( | const IteratorTemplate< CONSTITERATOR > & | b | ) | const |
|
static |
|
private |
|
private |