Changeset 9671 in orxonox.OLD for trunk/src/lib/lang/new_class_id.h
- Timestamp:
- Aug 21, 2006, 4:14:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_class_id.h
r9667 r9671 26 26 27 27 private: 28 NewObjectListBase* _objectList;28 NewObjectListBase* _objectList; 29 29 std::list<NewObjectListBase::IteratorBase*> _iterators; //!< Iterators to the class-list's positions. 30 30 }; 31 31 32 32 33 template<class T> void NewClassID::registerObject(T* object, NewObjectList<T>& objectList) 33 template<class T> 34 inline void NewClassID::registerObject(T* object, NewObjectList<T>& objectList) 34 35 { 35 36 this->_objectList = &objectList; 36 _iterators.push_back(objectList.registerObject(object ));37 _iterators.push_back(objectList.registerObject(object, this->_objectList)); 37 38 } 38 39
Note: See TracChangeset
for help on using the changeset viewer.