Changeset 9673 in orxonox.OLD for trunk/src/lib/lang/new_object_list.h
- Timestamp:
- Aug 21, 2006, 6:22:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_object_list.h
r9672 r9673 21 21 NewObjectList<ClassName> ClassName::objectList(#ClassName) 22 22 23 24 //! The superclass that all NewObjectLists follow. 25 /** 26 * @see template<class T> NewObjectList<T> 27 */ 23 28 class NewObjectListBase 24 29 { 25 30 public: 31 //! An iterator Base-Class, for iterator-casting and storing. 26 32 class IteratorBase { }; 27 struct ClassEntry{28 inline ClassEntry (NewObjectListBase* objectList, NewObjectListBase::IteratorBase* iterator) : _objectList(objectList), _iterator(iterator) {}29 NewObjectListBase* _objectList;30 NewObjectListBase::IteratorBase* _iterator;31 };32 33 33 34 public: … … 83 84 //! Defines a ObjectsList handler for objects of type T. 84 85 /** 86 * To define a Class with a ObjectList, you have to: 87 * 1. Include 'NewObjectListDeclaration(T);' in its Declaration (at the beginning) 88 * 2. Include 'NewObjectListDefinition(T);' in some Definition file (cc-file) 89 * 3. In the constructor add 'registerObject(this, objectList);' 90 * 85 91 * @note The Class must define the compare with const std::string& operator for this to work. 86 92 */
Note: See TracChangeset
for help on using the changeset viewer.