Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 12:34:00 AM (15 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/ObjectListBase.h

    r5738 r7401  
    2929/**
    3030    @file
    31     @brief Definition of the ObjectListBase class.
     31    @ingroup Object ObjectList
     32    @brief Declaration of the ObjectListBase class which stores all objects of each class.
    3233
    33     The ObjectListBase is a double-linked list, used by Identifiers to store all objects of a given class.
    34     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.
    3537*/
    3638
     
    4850    // ###  ObjectListBaseElement  ###
    4951    // ###############################
    50     //! The list-element of the ObjectListBase
     52    /// The list-element of the ObjectListBase
    5153    class _CoreExport ObjectListBaseElement
    5254    {
     
    5456            /**
    5557                @brief Constructor: Creates the list-element with an object.
    56                 @param object The object to store
     58                @param objectBase The object to store
    5759            */
    5860            ObjectListBaseElement(OrxonoxClass* objectBase) : next_(0), prev_(0), objectBase_(objectBase) {}
     
    6769    // ###    ObjectListElement    ###
    6870    // ###############################
    69     //! The list-element that actually contains the object
     71    /// The list-element that actually contains the object
    7072    template <class T>
    7173    class ObjectListElement : public ObjectListBaseElement
     
    8082    // ###     ObjectListBase      ###
    8183    // ###############################
    82     //! The ObjectListBase contains all objects of a given class.
    8384    /**
    84         The ObjectListBase is used by Identifiers to store all objects of their given class.
    85         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.
    8694    */
    8795    class _CoreExport ObjectListBase
     
    95103            ObjectListBaseElement* add(ObjectListBaseElement* element);
    96104
     105            /// Helper struct, used to export an element and the list to an instance of Iterator.
    97106            struct Export
    98107            {
     
    102111            };
    103112
    104             /** @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.
    105114            inline Export begin() { return ObjectListBase::Export(this, this->first_); }
    106             /** @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.
    107116            inline Export end() { return ObjectListBase::Export(this, 0); }
    108             /** @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.
    109118            inline Export rbegin() { return ObjectListBase::Export(this, this->last_); }
    110             /** @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.
    111120            inline Export rend() { return ObjectListBase::Export(this, 0); }
    112121
Note: See TracChangeset for help on using the changeset viewer.