#include <collection.h>
ForEachIterator-based class which iterates over the memory blocks of a collection. For a BaseArray you have just one Block, for the BlockArray as many as have been allocated and for a BaseList or PointerArray each element has its own Block.
Public Types | |
using | CollectionType = typename ConstIf< COLLECTION, CONSTITERATOR >::type |
using | ElementType = typename ConstIf< VALUETYPE, CONSTITERATOR >::type |
using | ValueType = Block< ElementType, STRIDED > |
Public Types inherited from ForEachIterator< BlockIterator< COLLECTION, VALUETYPE, CONSTITERATOR, STRIDED > > | |
using | IsForEachIterator = std::true_type |
Public Member Functions | |
BlockIterator () | |
BlockIterator (const BlockIterator &)=default | |
BlockIterator & | operator= (const BlockIterator &)=default |
MAXON_IMPLICIT | BlockIterator (CollectionType *array) |
ValueType & | operator* () |
ValueType * | operator-> () |
operator Bool () const | |
BlockIterator & | operator++ () |
void | operator++ (int) |
Public Member Functions inherited from ForEachIterator< BlockIterator< COLLECTION, VALUETYPE, CONSTITERATOR, STRIDED > > | |
MAXON_ATTRIBUTE_FORCE_INLINE | ForEachIterator (ARGS &&... args) |
String | ToString (const FormatStatement *formatStatement=nullptr) |
BlockIterator< COLLECTION, VALUETYPE, CONSTITERATOR, STRIDED > & | Find (const T &v) |
Int | FindIndex (const T &v) |
MAXON_ATTRIBUTE_FORCE_INLINE Bool | Contains (const T &v) |
MAXON_ATTRIBUTE_FORCE_INLINE Wrapper | begin () |
Private Attributes | |
ValueType | _block |
CollectionType * | _array |
Int | _index |
Additional Inherited Members | |
Static Public Member Functions inherited from ForEachIterator< BlockIterator< COLLECTION, VALUETYPE, CONSTITERATOR, STRIDED > > | |
static MAXON_ATTRIBUTE_FORCE_INLINE | PRIVATE_MAXON_RBF_SENTINEL (Wrapper) end() |
using CollectionType = typename ConstIf<COLLECTION, CONSTITERATOR>::type |
using ElementType = typename ConstIf<VALUETYPE, CONSTITERATOR>::type |
using ValueType = Block<ElementType, STRIDED> |
BlockIterator | ( | ) |
|
default |
MAXON_IMPLICIT BlockIterator | ( | CollectionType * | array | ) |
|
default |
ValueType& operator* | ( | ) |
ValueType* operator-> | ( | void | ) |
|
explicit |
BlockIterator& operator++ | ( | ) |
void operator++ | ( | int | ) |
|
private |
|
private |
|
private |