- Timestamp:
- Aug 21, 2006, 10:55:02 AM (18 years ago)
- Location:
- trunk/src/lib/lang
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_class_id.h
r9666 r9667 27 27 private: 28 28 NewObjectListBase* _objectList; 29 30 std::list<NewObjectListBase::IteratorBase*> _iterators; 29 std::list<NewObjectListBase::IteratorBase*> _iterators; //!< Iterators to the class-list's positions. 31 30 }; 32 31 -
trunk/src/lib/lang/new_object_list.h
r9666 r9667 82 82 { 83 83 public: 84 Iterator(iterator it) { it = it; } 84 85 typename NewObjectList::iterator it; 85 86 }; … … 92 93 inline const list& objects() const { return _objects; }; 93 94 94 voidregisterObject(T* object);95 NewObjectListBase::IteratorBase* registerObject(T* object); 95 96 void unregisterObject(const IteratorBase& iterator); 96 97 … … 118 119 NewObjectList<T>::~NewObjectList() 119 120 { 120 assert(_objects.empty());121 // assert(_objects.empty()); 121 122 } 122 123 … … 132 133 133 134 template <class T> 134 voidNewObjectList<T>::registerObject(T* object)135 NewObjectListBase::IteratorBase* NewObjectList<T>::registerObject(T* object) 135 136 { 136 this->_objects.push_back(object); 137 this->_objects.push_front(object); 138 return new Iterator(this->_objects.begin()); 137 139 } 138 140
Note: See TracChangeset
for help on using the changeset viewer.