BlockIterator< COLLECTION, VALUETYPE, CONSTITERATOR, STRIDED > Class Template Reference Data Structures
#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 > |
![]() |
|
using | IsForEachIterator = std::true_type |
公共成员函数 |
|
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) |
![]() |
|
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 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-> | ( | ) |
|
explicit |
BlockIterator & operator++ | ( | ) |
void operator++ | ( | int | ) |
|
private |
|
private |
|
private |