Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9681 in orxonox.OLD for trunk/src/lib/lang/new_object_list.h


Ignore:
Timestamp:
Aug 22, 2006, 12:19:30 AM (18 years ago)
Author:
bensch
Message:

cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/new_object_list.h

    r9677 r9681  
    1212#include <list>
    1313#include <string>
     14#include <iostream>
    1415
    1516
     
    129130//// IMPLEMENTATION /////
    130131/////////////////////////
     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 */
    131137template <class T>
    132138NewObjectList<T>::NewObjectList(const std::string& name, int id)
     
    134140{}
    135141
     142/**
     143 * @brief deletes the NewObjectList.
     144 */
    136145template <class T>
    137146NewObjectList<T>::~NewObjectList()
    138147{
    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  }
    140153}
    141154
     
    151164
    152165template <class T>
    153     NewObjectListBase::IteratorBase* NewObjectList<T>::registerObject(T* object)
     166NewObjectListBase::IteratorBase* NewObjectList<T>::registerObject(T* object)
    154167{
    155168  this->_objects.push_front(object);
     
    164177}
    165178
    166 #include <iostream>
    167179
    168180template <class T>
Note: See TracChangeset for help on using the changeset viewer.