SourcePro® 2022.1 |
SourcePro® API Reference Guide |
The random access iterator for the RWMathArray collection class. More...
#include <rw/math/mtharray.h>
Additional Inherited Members | |
Public Types inherited from RWMathArrayIteratorBase< T > | |
typedef RWMathArray< T >::const_pointer | const_pointer |
typedef RWMathArray< T >::difference_type | difference_type |
typedef RWMathArray< T >::value_type | value_type |
Class RWMathArray is the random access iterator for the RWMathArray collection class. The RWMathArrayIterator class behaves like a pointer to type T
and is used to increment through elements of an RWMathArray.
|
inline |
Constructs an iterator that is in an uninitialized state. The iterator must be initialized before it is dereferenced.
|
inline |
Constructs an RWMathArrayIterator from another RWMathArrayIterator. Initialized iterators can be obtained via RWMathArray::begin() and RWMathArray::end().
|
inline |
Returns a reference to the element pointed to by self.
|
inline |
Returns an RWMathArrayIterator that is d elements past (or before) self.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathArrayIterator points to the next or previous element in the RWMathArray. No error condition is set if the iterator goes past the bounds of the array. Compare to RWMathArray::begin() and RWMathArray::end() to check that the iterator position is valid.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathArrayIterator points to the next or previous element in the RWMathArray. No error condition is set if the iterator goes past the bounds of the array. Compare to RWMathArray::begin() and RWMathArray::end() to check that the iterator position is valid.
|
inline |
Moves the RWMathArrayIterator forward or backward d elements in the RWMathArray. No error condition is set if the iterator goes past the bounds of the array. Incrementing by d and then decrementing by d returns the iterator to its original position, even if doing so takes it past the bounds of the array.
|
inline |
If the return value is positive, the RWMathArrayIterator is that many elements past the iterator i. If the return value is negative, the RWMathArrayIterator is that many elements before the iterator i.
|
inline |
Returns an RWMathArrayIterator that is d elements past (or before) self.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathArrayIterator points to the next or previous element in the RWMathArray. No error condition is set if the iterator goes past the bounds of the array. Compare to RWMathArray::begin() and RWMathArray::end() to check that the iterator position is valid.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathArrayIterator points to the next or previous element in the RWMathArray. No error condition is set if the iterator goes past the bounds of the array. Compare to RWMathArray::begin() and RWMathArray::end() to check that the iterator position is valid.
|
inline |
Moves the RWMathArrayIterator forward or backward d elements in the RWMathArray. No error condition is set if the iterator goes past the bounds of the array. Incrementing by d and then decrementing by d returns the iterator to its original position, even if doing so takes it past the bounds of the array.
|
inline |
For iterator a, and identifier m, a->m is equivalent to (*a).m.
|
inline |
Sets the RWMathArrayIterator state to be the same state as i.
|
inline |
Returns a reference to the element that is n
elements after self if n
is positive, or n
elements before self if n
is negative.
Copyright © 2022 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |