|
| Iterator () |
| Constructor: Sets the element, whereon the iterator points, to zero. More...
|
|
template<class OT , class OI > |
| Iterator (const IteratorBase< OT, OI > &other) |
| Constructor: Sets this element to the element of another Iterator. More...
|
|
T * | operator* () const |
| Overloading of the *it operator: returns the pointer to the object. More...
|
|
T * | operator-> () const |
| Overloading of the it-> operator: returns the pointer to the object. More...
|
|
Iterator< T > & | operator= (ObjectListBaseElement *element) |
| Assigns a given element. More...
|
|
| IteratorBase (ObjectListElement< T > *element=nullptr) |
| Constructor: Sets the element, whereon the iterator points, to the given element. More...
|
|
| IteratorBase (const IteratorBase< OT, OI > &other) |
| Constructor: Sets the element, whereon the iterator points, to the given element of another type. More...
|
|
| ~IteratorBase () |
| Unregisters the Iterator from the ObjectList. More...
|
|
ObjectListBaseElement * | getElement () const |
|
| operator bool () const |
| Overloading of the typecast-operator to bool: returns true if the iterator points to an existing object. More...
|
|
bool | operator!= (const IteratorBase< T, Iterator< T > > &compare) const |
| Overloading of the != operator to compare with another Iterator. More...
|
|
const IteratorBase< T, Iterator< T > > & | operator++ () |
| Overloading of the ++it operator: Iterator points to the next object in the list. More...
|
|
Iterator< T > | operator++ (int) |
| Overloading of the it++ operator: Iterator points to the next object in the list. More...
|
|
const IteratorBase< T, Iterator< T > > & | operator-- () |
| Overloading of the –it operator: Iterator points to the previous object in the list. More...
|
|
Iterator< T > | operator-- (int i) |
| Overloading of the it– operator: Iterator points to the previous object in the list. More...
|
|
IteratorBase< T, Iterator< T > > & | operator= (ObjectListElement< T > *element) |
| Assigns a given element. More...
|
|
IteratorBase< T, Iterator< T > > & | operator= (const IteratorBase< T, Iterator< T > > &other) |
| Assigns the element of another Iterator. More...
|
|
bool | operator== (const IteratorBase< T, Iterator< T > > &compare) const |
| Overloading of the == operator to compare with another Iterator. More...
|
|
virtual void | removedElement (ObjectListBaseElement *element) override |
| Increments the Iterator if it points at the given element. More...
|
|
| ObjectListElementRemovalListener ()=default |
|
virtual | ~ObjectListElementRemovalListener ()=default |
|
template<class T>
class orxonox::Iterator< T >
The Iterator allows to iterate through a given ObjectList.
Independent of the object-list's type, the objects in the list are always casted to T using dynamic_cast
.
- See also
- See Iterator.h for more information an example.