#include <src/core/ObjectListIterator.h>
Public Member Functions | |
void | incrementIfEqual (OrxonoxClass *object) |
Increments the ObjectListIterator if it points at the given object. | |
ObjectListIterator (const ObjectListIterator< T > &other) | |
Constructor: Sets this element to the element of another ObjectListIterator. | |
ObjectListIterator (ObjectListElement< T > *element) | |
Constructor: Sets this element to a given element. | |
ObjectListIterator () | |
Constructor: Sets the element, whereon the ObjectListIterator points, to zero. | |
operator bool () const | |
Overloading of the typecast-operator to bool: returns true if the ObjectListIterator points to an existing object. | |
bool | operator!= (const ObjectListIterator< T > &compare) const |
Overloading of the != operator to compare with another ObjectListIterator. | |
T * | operator* () const |
Overloading of the *it operator: returns the pointer to the object. | |
ObjectListIterator< T > | operator++ (int i) |
Overloading of the it++ operator: ObjectListIterator points to the next object in the list. | |
const ObjectListIterator< T > & | operator++ () |
Overloading of the ++it operator: ObjectListIterator points to the next object in the list. | |
ObjectListIterator< T > | operator-- (int i) |
Overloading of the it-- operator: ObjectListIterator points to the previous object in the list. | |
const ObjectListIterator< T > & | operator-- () |
Overloading of the --it operator: ObjectListIterator points to the previous object in the list. | |
T * | operator-> () const |
Overloading of the it-> operator: returns the pointer to the object. | |
const ObjectListIterator< T > & | operator= (const ObjectListIterator< T > &other) |
Assigns the element of another ObjectListIterator. | |
const ObjectListIterator< T > & | operator= (ObjectListElement< T > *element) |
Assigns an ObjectListElement. | |
bool | operator== (const ObjectListIterator< T > &compare) const |
Overloading of the == operator to compare with another ObjectListIterator. | |
~ObjectListIterator () | |
Unregisters the ObjectListIterator from the ObjectList. | |
Private Attributes | |
ObjectListElement< T > * | element_ |
The element the Iterator points at. | |
Friends | |
class | Iterator |
orxonox::ObjectListIterator< T >::ObjectListIterator | ( | ) | [inline] |
Constructor: Sets the element, whereon the ObjectListIterator points, to zero.
orxonox::ObjectListIterator< T >::ObjectListIterator | ( | ObjectListElement< T > * | element | ) | [inline] |
Constructor: Sets this element to a given element.
element | The element to start with |
orxonox::ObjectListIterator< T >::ObjectListIterator | ( | const ObjectListIterator< T > & | other | ) | [inline] |
Constructor: Sets this element to the element of another ObjectListIterator.
other | The other ObjectListIterator |
orxonox::ObjectListIterator< T >::~ObjectListIterator | ( | ) | [inline] |
Unregisters the ObjectListIterator from the ObjectList.
void orxonox::ObjectListIterator< T >::incrementIfEqual | ( | OrxonoxClass * | object | ) | [inline] |
Increments the ObjectListIterator if it points at the given object.
object | The object to compare with |
orxonox::ObjectListIterator< T >::operator bool | ( | ) | const [inline] |
Overloading of the typecast-operator to bool: returns true if the ObjectListIterator points to an existing object.
bool orxonox::ObjectListIterator< T >::operator!= | ( | const ObjectListIterator< T > & | compare | ) | const [inline] |
Overloading of the != operator to compare with another ObjectListIterator.
compare | The other ObjectListIterator |
T* orxonox::ObjectListIterator< T >::operator* | ( | ) | const [inline] |
Overloading of the *it operator: returns the pointer to the object.
ObjectListIterator<T> orxonox::ObjectListIterator< T >::operator++ | ( | int | i | ) | [inline] |
Overloading of the it++ operator: ObjectListIterator points to the next object in the list.
const ObjectListIterator<T>& orxonox::ObjectListIterator< T >::operator++ | ( | ) | [inline] |
Overloading of the ++it operator: ObjectListIterator points to the next object in the list.
Referenced by orxonox::ObjectListIterator< orxonox::RadarViewable >::incrementIfEqual().
ObjectListIterator<T> orxonox::ObjectListIterator< T >::operator-- | ( | int | i | ) | [inline] |
Overloading of the it-- operator: ObjectListIterator points to the previous object in the list.
const ObjectListIterator<T>& orxonox::ObjectListIterator< T >::operator-- | ( | ) | [inline] |
Overloading of the --it operator: ObjectListIterator points to the previous object in the list.
T* orxonox::ObjectListIterator< T >::operator-> | ( | ) | const [inline] |
Overloading of the it-> operator: returns the pointer to the object.
const ObjectListIterator<T>& orxonox::ObjectListIterator< T >::operator= | ( | const ObjectListIterator< T > & | other | ) | [inline] |
const ObjectListIterator<T>& orxonox::ObjectListIterator< T >::operator= | ( | ObjectListElement< T > * | element | ) | [inline] |
bool orxonox::ObjectListIterator< T >::operator== | ( | const ObjectListIterator< T > & | compare | ) | const [inline] |
Overloading of the == operator to compare with another ObjectListIterator.
compare | The other ObjectListIterator |
friend class Iterator [friend] |
ObjectListElement<T>* orxonox::ObjectListIterator< T >::element_ [private] |
The element the Iterator points at.
Referenced by orxonox::ObjectListIterator< orxonox::RadarViewable >::incrementIfEqual(), orxonox::Iterator< orxonox::BaseObject >::Iterator(), orxonox::ObjectListIterator< orxonox::RadarViewable >::ObjectListIterator(), orxonox::ObjectListIterator< orxonox::RadarViewable >::operator bool(), orxonox::ObjectListIterator< orxonox::RadarViewable >::operator!=(), orxonox::ObjectListIterator< orxonox::RadarViewable >::operator*(), orxonox::ObjectListIterator< orxonox::RadarViewable >::operator++(), orxonox::ObjectListIterator< orxonox::RadarViewable >::operator--(), orxonox::ObjectListIterator< orxonox::RadarViewable >::operator->(), orxonox::ObjectListIterator< orxonox::RadarViewable >::operator=(), orxonox::Iterator< orxonox::BaseObject >::operator=(), and orxonox::ObjectListIterator< orxonox::RadarViewable >::operator==().