|
nCine 2025.10.r510-151873a
A cross-platform 2D game engine
|
#include <ArrayIterator.h>
Public Types | |
| using | Pointer = typename IteratorTraits< ArrayIterator >::Pointer |
| Pointer type which respects iterator constness. | |
| using | Reference = typename IteratorTraits< ArrayIterator >::Reference |
| Reference type which respects iterator constness. | |
Public Member Functions | |
| ArrayIterator (T *elementPtr) | |
| ArrayIterator (const ArrayIterator< T, false > &it) | |
| Copy constructor to implicitly convert a non constant iterator to a constant one. | |
| Reference | operator* () const |
| Deferencing operator. | |
| ArrayIterator & | operator++ () |
| Iterates to the next element (prefix) | |
| ArrayIterator | operator++ (int) |
| Iterates to the next element (postfix) | |
| ArrayIterator & | operator-- () |
| Iterates to the previous element (prefix) | |
| ArrayIterator | operator-- (int) |
| Iterates to the previous element (postfix) | |
| ArrayIterator & | operator+= (int n) |
| Compound addition operator. | |
| ArrayIterator & | operator-= (int n) |
| Compound subtraction operator. | |
| ArrayIterator | operator+ (int n) const |
| Addition operator. | |
| ArrayIterator | operator- (int n) const |
| Subtraction operator. | |
| Reference | operator[] (int n) const |
| Subscript operator. | |
Friends | |
| class | ArrayIterator< T, true > |
| For non constant to constant iterator implicit conversion. | |
| int | operator- (const ArrayIterator &lhs, const ArrayIterator &rhs) |
| Pointer subtraction operator. | |
| bool | operator== (const ArrayIterator &lhs, const ArrayIterator &rhs) |
| Equality operator. | |
| bool | operator!= (const ArrayIterator &lhs, const ArrayIterator &rhs) |
| Inequality operator. | |
| bool | operator> (const ArrayIterator &lhs, const ArrayIterator &rhs) |
| Greater than operator. | |
| bool | operator< (const ArrayIterator &lhs, const ArrayIterator &rhs) |
| Less than operator. | |
| bool | operator>= (const ArrayIterator &lhs, const ArrayIterator &rhs) |
| Greater than or equal to operator. | |
| bool | operator<= (const ArrayIterator &lhs, const ArrayIterator &rhs) |
| Less than or equal to operator. | |