#include <pointerarray.h>
The PointerArray iterator can be used to iterate over an array or parts of it. For more ease of use you may want to invoke this via the C++11 range based for loop.
You can use an iterator almost like a pointer, e.g.
Public Types | |
using | CollectionType = typename ConstIf< PointerArray, CONSTITERATOR >::type |
using | Type = typename ConstIf< T, CONSTITERATOR >::type |
Public Member Functions | |
IteratorTemplate (CollectionType &a, Int start=0) | |
IteratorTemplate (Type *const *pos=nullptr) | |
IteratorTemplate (const IteratorTemplate &src) | |
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-- () |
const IteratorTemplate | operator-- (int) |
IteratorTemplate & | operator-= (Int i) |
IteratorTemplate | operator+ (Int i) const |
IteratorTemplate | operator- (Int i) const |
Int | operator- (const IteratorTemplate &b) const |
Static Public Attributes | |
static const Bool | isLinearIterator |
Private Attributes | |
Type *const * | _data |
using CollectionType = typename ConstIf<PointerArray, CONSTITERATOR>::type |
|
explicit |
|
explicit |
IteratorTemplate | ( | const IteratorTemplate< CONSTITERATOR > & | src | ) |
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-- | ( | ) |
const IteratorTemplate operator-- | ( | int | ) |
IteratorTemplate& operator-= | ( | Int | i | ) |
IteratorTemplate operator+ | ( | Int | i | ) | const |
IteratorTemplate operator- | ( | Int | i | ) | const |
Int operator- | ( | const IteratorTemplate< CONSTITERATOR > & | b | ) | const |
|
static |
|
private |