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/ObjectListBase.h

    r7363 r7372  
    3030    @file
    3131    @ingroup Object ObjectList
    32     @brief Definition of the ObjectListBase class.
     32    @brief Declaration of the ObjectListBase class.
    3333
    34     The ObjectListBase is a double-linked list, used by Identifiers to store all objects of a given class.
    35     Newly created objects are added through the RegisterObject-macro in its constructor.
     34    orxonox::ObjectListBase is a double-linked list, used by @ref orxonox::Identifier "Identifiers"
     35    to store all objects of a given class. Newly created objects are added to the list through the
     36    @c RegisterObject() macro in the constructor.
    3637*/
    3738
     
    4950    // ###  ObjectListBaseElement  ###
    5051    // ###############################
    51     //! The list-element of the ObjectListBase
     52    /// The list-element of the ObjectListBase
    5253    class _CoreExport ObjectListBaseElement
    5354    {
     
    6869    // ###    ObjectListElement    ###
    6970    // ###############################
    70     //! The list-element that actually contains the object
     71    /// The list-element that actually contains the object
    7172    template <class T>
    7273    class ObjectListElement : public ObjectListBaseElement
     
    8182    // ###     ObjectListBase      ###
    8283    // ###############################
    83     //! The ObjectListBase contains all objects of a given class.
    8484    /**
    85         The ObjectListBase is used by Identifiers to store all objects of their given class.
    86         Use ObjectList<T> to get the list of all T's and Iterator<T> to iterate through them.
     85        @brief The ObjectListBase contains all objects of a given class.
     86
     87        The ObjectListBase is used by Identifiers to store all objects of their class.
     88        You can use Identifier::getObjects() to get the object-list from an Identifier.
     89        Use @ref Iterator "Iterator<T>" to iterate through them.
     90
     91        Alternatively you can also use the static helper class @ref orxonox::ObjectList "ObjectList<T>"
     92        to get the list of all objects of type @a T. Use @ref ObjectListIterator "ObjectListIterator<T>"
     93        or @ref Iterator "Iterator<T>" to iterate through them.
    8794    */
    8895    class _CoreExport ObjectListBase
     
    96103            ObjectListBaseElement* add(ObjectListBaseElement* element);
    97104
     105            /// Helper struct, used to export an element and the list to an instance of Iterator.
    98106            struct Export
    99107            {
     
    103111            };
    104112
    105             /** @brief Returns a pointer to the first element in the list. @return The element */
     113            /// Returns a pointer to the first element in the list. Works only with Iterator.
    106114            inline Export begin() { return ObjectListBase::Export(this, this->first_); }
    107             /** @brief Returns a pointer to the element after the last element in the list. @return The element */
     115            /// Returns a pointer to the element after the last element in the list. Works only with Iterator.
    108116            inline Export end() { return ObjectListBase::Export(this, 0); }
    109             /** @brief Returns a pointer to the last element in the list. @return The element */
     117            /// Returns a pointer to the last element in the list. Works only with Iterator.
    110118            inline Export rbegin() { return ObjectListBase::Export(this, this->last_); }
    111             /** @brief Returns a pointer to the element in front of the first element in the list. @return The element */
     119            /// Returns a pointer to the element in front of the first element in the list. Works only with Iterator.
    112120            inline Export rend() { return ObjectListBase::Export(this, 0); }
    113121
Note: See TracChangeset for help on using the changeset viewer.