Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 7, 2010, 12:58:52 AM (14 years ago)
Author:
landauf
Message:

enhanced documentation of some core classes and added examples

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/doc/src/libraries/core/ObjectListIterator.h

    r7363 r7372  
    3030    @file
    3131    @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.
    3740
    3841    Usage:
     42    @code
    3943    for (ObjectListIterator<myClass> it = ObjectList<myClass>::begin(); it != ObjectList<myClass>::end(); ++it)
    4044    {
     
    4246        myClass* myObject = *it;
    4347    }
     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).
    4452*/
    4553
     
    5361namespace orxonox
    5462{
    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    */
    5668    template <class T>
    5769    class ObjectListIterator
     
    218230
    219231        private:
    220             ObjectListElement<T>* element_;        //!< The element the Iterator points at
     232            ObjectListElement<T>* element_;        //!< The element the iterator points at
    221233    };
    222234}
Note: See TracChangeset for help on using the changeset viewer.