|
| ArrayReverseIteratorBase () |
| Constructs an invalid iterator. More...
|
|
template<bool isArgConst, typename std::enable_if< isConst||!isArgConst, int >::type = 0> |
| ArrayReverseIteratorBase (const ArrayReverseIteratorBase< E, isArgConst > &it) |
| Constructs an iterator that is a copy of it . More...
|
|
| ArrayReverseIteratorBase (const ArrayReverseIteratorBase< E, isConst > &it) |
| Copy constructor. clang10 does not see the above templated one match this case and requires it explicitly. More...
|
|
template<bool isConstSFINAE = isConst, typename std::enable_if< isConstSFINAE, int >::type = 0> |
| ArrayReverseIteratorBase (const E *pX) |
| Constructs an iterator that points to const E* pX . More...
|
|
| ArrayReverseIteratorBase (E *pX) |
| Constructs an iterator that points to E* pX . More...
|
|
| operator std::conditional< isConst, const E, E > * () const |
| Implicit cast to (const) E*. More...
|
|
bool | operator!= (const ArrayReverseIteratorBase< E, isConst > &it) const |
| Inequality operator. More...
|
|
Elem & | operator* () const |
| Returns the element this iterator points to. More...
|
|
ArrayReverseIteratorBase< E, isConst > | operator+ (const int &rhs) |
| Addition operator with int on the right-hand side. More...
|
|
ArrayReverseIteratorBase< E, isConst > & | operator++ () |
| Increment operator (prefix). More...
|
|
ArrayReverseIteratorBase< E, isConst > | operator++ (int) |
| Increment operator (postfix). More...
|
|
ArrayReverseIteratorBase< E, isConst > & | operator+= (const int &rhs) |
| Compound assignment operator (+). More...
|
|
template<bool isArgConst> |
int | operator- (ArrayReverseIteratorBase< E, isArgConst > &rhs) |
| Subtraction operator. More...
|
|
ArrayReverseIteratorBase< E, isConst > | operator- (const int &rhs) |
| Subtraction operator with int on the right-hand side. More...
|
|
ArrayReverseIteratorBase< E, isConst > & | operator-- () |
| Decrement operator (prefix). More...
|
|
ArrayReverseIteratorBase< E, isConst > | operator-- (int) |
| Decrement operator (postfix). More...
|
|
ArrayReverseIteratorBase< E, isConst > & | operator-= (const int &rhs) |
| Compound assignment operator (-). More...
|
|
bool | operator< (ArrayReverseIteratorBase< E, isConst > &it) const |
| Less-than operator. More...
|
|
bool | operator<= (ArrayReverseIteratorBase< E, isConst > &it) const |
| Less-than-or-equals operator. More...
|
|
ArrayReverseIteratorBase< E, isConst > & | operator= (const ArrayReverseIteratorBase< E, isConst > &it) |
| Assignment operator. More...
|
|
bool | operator== (const ArrayReverseIteratorBase< E, isConst > &it) const |
| Equality operator. More...
|
|
bool | operator> (ArrayReverseIteratorBase< E, isConst > &it) const |
| Greater-than operator. More...
|
|
bool | operator>= (ArrayReverseIteratorBase< E, isConst > &it) const |
| Greater-than-or-equals operator. More...
|
|
Elem & | operator[] (std::size_t idx) |
| Member access operator. More...
|
|
const Elem & | operator[] (std::size_t idx) const |
| Const member access operator. More...
|
|
template<class E, bool isConst>
class ogdf::ArrayReverseIteratorBase< E, isConst >
Random-access reverse iterator based on a pointer to an array element.
Swaps all operations involving an increment of the pointer by operations involving a decrement, and vice versa. Moreover, the relational operators are swapped as well. It is possible that an iterator encapsulates a null pointer.
- Template Parameters
-
E | The type of element. |
isConst | True iff this iterator allows only const-access to the element. |
Definition at line 51 of file Array.h.