![]() |
RobWorkProject
23.9.11-
|
Forward iterator for vectors of pointers to T. More...
#include <VectorIterator.hpp>
Public Types | |
| typedef I::iterator_category | iterator_category |
| typedef T | value_type |
| typedef T * | pointer |
| typedef T & | reference |
| typedef I::difference_type | difference_type |
Public Member Functions | |
| VectorIterator (I pos) | |
| Iterator for the element at pos. | |
| T & | operator* () const |
| Reference to the T element. | |
| T * | operator-> () const |
| Pointer to the T element. | |
| VectorIterator & | operator++ () |
| Increments the position of the iterator. More... | |
| VectorIterator | operator++ (int) |
| Increments the position of the iterator. More... | |
| bool | operator== (const VectorIterator &other) const |
| Tests whether the positions of two iterators are equal. More... | |
| bool | operator!= (const VectorIterator &other) const |
| Tests whether the positions of two iterators are unequal. More... | |
Friends | |
| class | ConstVectorIterator< T > |
Forward iterator for vectors of pointers to T.
| typedef I::difference_type difference_type |
Difference type.
| typedef I::iterator_category iterator_category |
Iterator category.
| typedef T* pointer |
Pointer type.
| typedef T& reference |
Reference type.
| typedef T value_type |
Value type.
|
inline |
Tests whether the positions of two iterators are unequal.
| other | [in] VectorIterator to compare with |
|
inline |
Increments the position of the iterator.
|
inline |
Increments the position of the iterator.
|
inline |
Tests whether the positions of two iterators are equal.
| other | [in] VectorIterator to compare with |