The const
random access iterator for the RWMathVec collection class.
More...
#include <rw/math/mathvec.h>
Class RWMathVecConstIterator is the const
random access iterator for the RWMathVec collection class. The RWMathVecConstIterator class behaves like a pointer to type T
and is used to increment through elements of an RWMathVec. The RWMathVecConstIterator differs from RWMathVecIterator in that the value in a dereferenced RWMathVecConstIterator may not be changed.
|
inline |
Constructs a RWMathVecConstIterator that is in an uninitialized state. The RWMathVecConstIterator must be initialized before it is dereferenced.
|
inline |
Constructs a RWMathVecConstIterator from another RWMathVecConstIterator. Initialized RWMathVecConstIterator can be obtained via the RWMathVec::begin() and RWMathVec::end().
|
inline |
Constructs a RWMathVecConstIterator from another RWMathVecIterator. Initialized RWMathVecIterator can be obtained via the RWMathVec::begin() and RWMathVec::end().
|
inline |
Returns a reference to the element pointed to by self.
|
inline |
Returns a RWMathVecConstIterator that is d elements past self.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathVecConstIterator points to the next or previous element in the RWMathVec. No error condition is set if the RWMathVecConstIterator goes past the bounds of the vector. Compare to RWMathVec::begin() and RWMathVec::end() to check that the RWMathVecConstIterator position is valid.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathVecConstIterator points to the next or previous element in the RWMathVec. No error condition is set if the RWMathVecConstIterator goes past the bounds of the vector. Compare to RWMathVec::begin() and RWMathVec::end() to check that the RWMathVecConstIterator position is valid.
|
inline |
Moves the RWMathVecConstIterator forward or backward d elements in the RWMathVec. No error condition is set if the RWMathVecConstIterator goes past the bounds of the vector. Incrementing by d and then decrementing by d returns the RWMathVecConstIterator to its original position, even if doing so takes it past the bounds of the vector.
|
inline |
If the return value is positive, sets the RWMathVecConstIterator that many elements past the RWMathVecConstIterator i. If the return value is negative, sets the RWMathVecConstIterator that many elements before the RWMathVecConstIterator i.
|
inline |
Returns a RWMathVecConstIterator that is d elements before self.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathVecConstIterator points to the next or previous element in the RWMathVec. No error condition is set if the RWMathVecConstIterator goes past the bounds of the vector. Compare to RWMathVec::begin() and RWMathVec::end() to check that the RWMathVecConstIterator position is valid.
|
inline |
Prefix or postfix increment or decrement operator. The RWMathVecConstIterator points to the next or previous element in the RWMathVec. No error condition is set if the RWMathVecConstIterator goes past the bounds of the vector. Compare to RWMathVec::begin() and RWMathVec::end() to check that the RWMathVecConstIterator position is valid.
|
inline |
Moves the RWMathVecConstIterator forward or backward d elements in the RWMathVec. No error condition is set if the RWMathVecConstIterator goes past the bounds of the vector. Incrementing by d and then decrementing by d returns the RWMathVecConstIterator to its original position, even if doing so takes it past the bounds of the vector.
|
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. |