Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/objecthierarchie/src/MetaObjectList.cc @ 246

Last change on this file since 246 was 246, checked in by landauf, 16 years ago

added "MetaObjectList", containing the list-element of the ObjectList of all classes an object is registered in. this allowes much faster deleting of objects.

File size: 393 bytes
Line 
1#include "MetaObjectList.h"
2
3namespace orxonox
4{
5    MetaObjectList::MetaObjectList()
6    {
7        this->first_ = 0;
8    }
9
10    MetaObjectList::~MetaObjectList()
11    {
12        BaseMetaObjectListElement* temp;
13        while (this->first_)
14        {
15            temp = this->first_->next_;
16            delete this->first_;
17            this->first_ = temp;
18        }
19    }
20}
Note: See TracBrowser for help on using the repository browser.