#include <blockarray.h>
The BlockArray iterator uses several tricks to make iteration faster than using a for loop with operator []. Therefore you should use it (or the C++11 range based for loop) to iterate over the array or parts of it.
You can use an iterator almost like a pointer, e.g.
Public Types | |
using | CollectionType = typename ConstIf< BlockArray, CONSTITERATOR >::type |
using | Type = typename ConstIf< T, CONSTITERATOR >::type |
Static Public Attributes | |
static const Bool | isLinearIterator |
Private Types | |
using | BlockIterator = typename std::conditional< CONSTITERATOR, typename ArrayBlock::ConstIterator, typename ArrayBlock::Iterator >::type |
using | BlockType = typename ConstIf< ArrayBlock, CONSTITERATOR >::type |
Private Attributes | |
CollectionType * | _array |
BlockType * | _block |
BlockIterator | _iterator |
BlockIterator | _end |
|
private |
|
private |
using CollectionType = typename ConstIf<BlockArray, CONSTITERATOR>::type |
|
explicit |
|
explicit |
|
explicit |
IteratorTemplate | ( | const IteratorTemplate< CONSTITERATOR > & | src | ) |
IteratorTemplate& operator= | ( | const IteratorTemplate< CONSTITERATOR > & | src | ) |
operator ConstIterator & | ( | ) |
MAXON_ATTRIBUTE_FORCE_INLINE IteratorTemplate GetBlock | ( | Block< Type, STRIDED > & | block | ) | const |
Determines a contiguous block of array elements to which the iterator points.
[out] | block | Block which contains the element.. |
|
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 |
|
private |
|
private |