- Timestamp:
- Sep 7, 2010, 12:58:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/core/ObjectListIterator.h
r7363 r7372 30 30 @file 31 31 @ingroup Object ObjectList 32 @brief Definition and implementation of the Iterator class. 33 34 The ObjectListIterator of a given class allows to iterate through the 35 ObjectList of this class, containing all objects of that type. 36 This is the only way to access the objects stored in an ObjectList. 32 @brief Definition of the ObjectListIterator class. 33 34 @anchor ObjectListIteratorExample 35 36 @ref orxonox::ObjectListIterator "ObjectListIterator<T>" allows to iterate through 37 @ref orxonox::ObjectList "ObjectList<T>", containing all objects of type @a T. In contrast to 38 @ref orxonox::Iterator "Iterator<T>", this iterator is limited to the object-list of type @a T. 39 It is, however, much faster as it doesn't need a @c dynamic_cast. 37 40 38 41 Usage: 42 @code 39 43 for (ObjectListIterator<myClass> it = ObjectList<myClass>::begin(); it != ObjectList<myClass>::end(); ++it) 40 44 { … … 42 46 myClass* myObject = *it; 43 47 } 48 @endcode 49 50 @note @ref orxonox::ObjectList::iterator "ObjectList<T>::iterator" is identical to 51 @ref orxonox::ObjectListIterator "ObjectListIterator<T>" (it's just a typedef). 44 52 */ 45 53 … … 53 61 namespace orxonox 54 62 { 55 //! The Iterator allows to iterate through the ObjectList of a given class. 63 /** 64 @brief ObjectListIterator<T> allows to iterate through the ObjectList of class @a T. 65 66 @see See @ref ObjectListIteratorExample "ObjectListIterator.h" for more information an example. 67 */ 56 68 template <class T> 57 69 class ObjectListIterator … … 218 230 219 231 private: 220 ObjectListElement<T>* element_; //!< The element the Iterator points at232 ObjectListElement<T>* element_; //!< The element the iterator points at 221 233 }; 222 234 }
Note: See TracChangeset
for help on using the changeset viewer.