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