Changeset 7372 for code/branches/doc/src/libraries/core/ObjectListBase.h
- Timestamp:
- Sep 7, 2010, 12:58:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/doc/src/libraries/core/ObjectListBase.h
r7363 r7372 30 30 @file 31 31 @ingroup Object ObjectList 32 @brief De finition of the ObjectListBase class.32 @brief Declaration of the ObjectListBase class. 33 33 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. 36 37 */ 37 38 … … 49 50 // ### ObjectListBaseElement ### 50 51 // ############################### 51 // !The list-element of the ObjectListBase52 /// The list-element of the ObjectListBase 52 53 class _CoreExport ObjectListBaseElement 53 54 { … … 68 69 // ### ObjectListElement ### 69 70 // ############################### 70 // !The list-element that actually contains the object71 /// The list-element that actually contains the object 71 72 template <class T> 72 73 class ObjectListElement : public ObjectListBaseElement … … 81 82 // ### ObjectListBase ### 82 83 // ############################### 83 //! The ObjectListBase contains all objects of a given class.84 84 /** 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. 87 94 */ 88 95 class _CoreExport ObjectListBase … … 96 103 ObjectListBaseElement* add(ObjectListBaseElement* element); 97 104 105 /// Helper struct, used to export an element and the list to an instance of Iterator. 98 106 struct Export 99 107 { … … 103 111 }; 104 112 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. 106 114 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. 108 116 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. 110 118 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. 112 120 inline Export rend() { return ObjectListBase::Export(this, 0); } 113 121
Note: See TracChangeset
for help on using the changeset viewer.