The random access iterator for the RWMathVec collection class. More...
#include <rw/math/mathvec.h>
Class RWMathVecIterator is the random access iterator for the RWMathVec collection class. The RWMathVecIterator class behaves like a pointer to type T
and is used to increment through elements of an RWMathVec.
|
inline |
Constructs an RWMathVecIterator that is in an uninitialized state. The iterator must be initialized before it is dereferenced.
|
inline |
Constructs an RWMathVecIterator from another RWMathVecIterator. Initialized iterators can be obtained via the RWMathVec::begin() and RWMathVec::end() member functions.
|
inline |
Returns a reference to the element pointed to by self.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathVecIterator points to the next or previous element in the RWMathVec. No error condition is set if the RWMathVecIterator goes past the bounds of the vector. Compare to RWMathVec::begin() and RWMathVec::end() to check that the iterator position is valid.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathVecIterator points to the next or previous element in the RWMathVec. No error condition is set if the RWMathVecIterator goes past the bounds of the vector. Compare to RWMathVec::begin() and RWMathVec::end() to check that the iterator position is valid.
|
inline |
Moves the iterator forward or backward d elements in the RWMathVec. No error condition is set if the iterator goes past the bounds of the vector. 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 vector.
|
inline |
If the return value is positive, moves the iterator that many elements past the iterator i. If the return value is negative, moves the iterator that many elements before the iterator i.
|
inline |
Returns an iterator that is d elements past (or before) self.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathVecIterator points to the next or previous element in the RWMathVec. No error condition is set if the RWMathVecIterator goes past the bounds of the vector. Compare to RWMathVec::begin() and RWMathVec::end() to check that the iterator position is valid.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathVecIterator points to the next or previous element in the RWMathVec. No error condition is set if the RWMathVecIterator goes past the bounds of the vector. Compare to RWMathVec::begin() and RWMathVec::end() to check that the iterator position is valid.
|
inline |
For iterator a, and identifier m, a->m is equivalent to (*a).m.
|
inline |
Replaces the current iterator position with x. Initialized iterators can be obtained via the RWMathVec::begin() and RWMathVec::end() member functions.
|
inline |
Returns a reference to the element n elements after self if n is positive, or n elements before self if n is negative.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |