Last change
on this file since 474 was
384,
checked in by landauf, 17 years ago
|
copied changed files from objecthierarchy-branch
|
File size:
710 bytes
|
Line | |
---|
1 | /*! |
---|
2 | @file MetaObjectList.cc |
---|
3 | @brief Implementation of the MetaObjectList class. |
---|
4 | */ |
---|
5 | |
---|
6 | #include "MetaObjectList.h" |
---|
7 | |
---|
8 | namespace orxonox |
---|
9 | { |
---|
10 | /** |
---|
11 | @brief Constructor: Sets first_ to zero. |
---|
12 | */ |
---|
13 | MetaObjectList::MetaObjectList() |
---|
14 | { |
---|
15 | this->first_ = 0; |
---|
16 | } |
---|
17 | |
---|
18 | /** |
---|
19 | @brief Destructor: Removes all elements from the list, causing them to remove the stored ObjectListElement from the ObjectList. |
---|
20 | */ |
---|
21 | MetaObjectList::~MetaObjectList() |
---|
22 | { |
---|
23 | BaseMetaObjectListElement* temp; |
---|
24 | while (this->first_) |
---|
25 | { |
---|
26 | temp = this->first_->next_; |
---|
27 | delete this->first_; |
---|
28 | this->first_ = temp; |
---|
29 | } |
---|
30 | } |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.