Last change
on this file since 247 was
246,
checked in by landauf, 17 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 | |
---|
3 | namespace 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.