Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 12:34:00 AM (14 years ago)
Author:
landauf
Message:

merged doc branch back to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/libraries/core/ObjectListIterator.h

    r7268 r7401  
    2929/**
    3030    @file
    31     @brief Definition and implementation of the Iterator class.
    32 
    33     The ObjectListIterator of a given class allows to iterate through the
    34     ObjectList of this class, containing all objects of that type.
    35     This is the only way to access the objects stored in an ObjectList.
     31    @ingroup Object ObjectList
     32    @brief Definition of the ObjectListIterator class, used to iterate through object-lists.
     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.
    3640
    3741    Usage:
     42    @code
    3843    for (ObjectListIterator<myClass> it = ObjectList<myClass>::begin(); it != ObjectList<myClass>::end(); ++it)
    3944    {
     
    4146        myClass* myObject = *it;
    4247    }
     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).
    4352*/
    4453
     
    5261namespace orxonox
    5362{
    54     //! 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    */
    5568    template <class T>
    5669    class ObjectListIterator
     
    109122            /**
    110123                @brief Assigns the element of another ObjectListIterator.
    111                 @param element The other ObjectListIterator
     124                @param other The other ObjectListIterator
    112125            */
    113126            inline ObjectListIterator<T>& operator=(const ObjectListIterator<T>& other)
     
    131144                @return The ObjectListIterator itself
    132145            */
    133             inline ObjectListIterator<T> operator++(int i)
     146            inline ObjectListIterator<T> operator++(int)
    134147            {
    135148                ObjectListIterator<T> copy = *this;
     
    217230
    218231        private:
    219             ObjectListElement<T>* element_;        //!< The element the Iterator points at
     232            ObjectListElement<T>* element_;        //!< The element the iterator points at
    220233    };
    221234}
Note: See TracChangeset for help on using the changeset viewer.