RingBuffer< ARRAYTYPE, RINGSIZE >::IteratorTemplate< CONSTITERATOR > Class Template Reference
#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 | 类型 = typename ConstIf < T , CONSTITERATOR >::type |
公共成员函数 |
|
IteratorTemplate ( CollectionType &a, Int start=0) | |
IteratorTemplate & | operator= (const IteratorTemplate & src ) |
operator ConstIterator & () | |
operator Bool () const | |
类型 * | GetPtr () const |
类型 & | operator* () const |
类型 * | 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 const Bool | isLinearIterator |
Private Attributes |
|
CollectionType * | _array |
Int | _index |
using CollectionType = typename ConstIf < RingBuffer , CONSTITERATOR>::type |
using 类型 = typename ConstIf < T , CONSTITERATOR>::type |
|
explicit |
IteratorTemplate & operator= | ( | const IteratorTemplate < CONSTITERATOR > & | src | ) |
operator ConstIterator & | ( | ) |
|
explicit |
类型 * GetPtr | ( | ) | const |
类型 & operator* | ( | ) | const |
类型 * operator-> | ( | ) | 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 |
|
|
private |
|
private |