Changeset 9681 in orxonox.OLD for trunk/src/lib/lang/new_object_list.h
- Timestamp:
- Aug 22, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_object_list.h
r9677 r9681 12 12 #include <list> 13 13 #include <string> 14 #include <iostream> 14 15 15 16 … … 129 130 //// IMPLEMENTATION ///// 130 131 ///////////////////////// 132 /** 133 * @brief creates a new NewObjectList 134 * @param name The name of the Class. 135 * @param id The ID of the class if desired, or -1 if an id should be assigned automatically. 136 */ 131 137 template <class T> 132 138 NewObjectList<T>::NewObjectList(const std::string& name, int id) … … 134 140 {} 135 141 142 /** 143 * @brief deletes the NewObjectList. 144 */ 136 145 template <class T> 137 146 NewObjectList<T>::~NewObjectList() 138 147 { 139 // assert(_objects.empty()); 148 if (!_objects.empty()) 149 { 150 std::cout << "There are still Object in the ObjectList of " << this->name() << "(id:" << this->id() << ")\n"; 151 this->debug(); 152 } 140 153 } 141 154 … … 151 164 152 165 template <class T> 153 166 NewObjectListBase::IteratorBase* NewObjectList<T>::registerObject(T* object) 154 167 { 155 168 this->_objects.push_front(object); … … 164 177 } 165 178 166 #include <iostream>167 179 168 180 template <class T>
Note: See TracChangeset
for help on using the changeset viewer.