Changeset 9666 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Aug 20, 2006, 11:51:51 PM (18 years ago)
- Location:
- trunk/src/lib/lang
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_class_id.cc
r9664 r9666 37 37 assert(_objectList != NULL); 38 38 39 39 40 // _objectList->unregister(this); 40 41 } -
trunk/src/lib/lang/new_class_id.h
r9665 r9666 10 10 #include "type_info.h" 11 11 #include <string> 12 12 #include <list> 13 13 #include "new_object_list.h" 14 14 … … 27 27 private: 28 28 NewObjectListBase* _objectList; 29 30 std::list<NewObjectListBase::IteratorBase*> _iterators; 29 31 }; 30 32 … … 33 35 { 34 36 this->_objectList = &objectList; 35 objectList.registerObject(object);37 _iterators.push_back(objectList.registerObject(object)); 36 38 } 37 39 -
trunk/src/lib/lang/new_object_list.h
r9665 r9666 23 23 { 24 24 public: 25 class IteratorBase { }; 26 27 public: 25 28 int id() const { return _id; }; 26 29 const std::string& name() const { return _name; }; … … 40 43 41 44 protected: 42 class IteratorBase { };43 45 44 46 NewObjectListBase(const std::string& className); … … 77 79 typedef typename list::iterator iterator; 78 80 79 81 class Iterator : public NewObjectListBase::IteratorBase 80 82 { 81 83 public:
Note: See TracChangeset
for help on using the changeset viewer.