Last change
on this file since 9672 was
9672,
checked in by bensch, 18 years ago
|
orxonox/trunk: ClassList objectively implemented. This is not the fastest, but the most modular approach.
Now is the question of redundancy in code writing:
Should the ClassWriter explicitely declare a Class with superclasses, or should on runtime each object decide for itself, as it is done in BaseObject at the moment… questions questions questions…
|
File size:
1.1 KB
|
Line | |
---|
1 | /* |
---|
2 | orxonox - the future of 3D-vertical-scrollers |
---|
3 | |
---|
4 | Copyright (C) 2006 orx |
---|
5 | |
---|
6 | This program is free software; you can redistribute it and/or modify |
---|
7 | it under the terms of the GNU General Public License as published by |
---|
8 | the Free Software Foundation; either version 2, or (at your option) |
---|
9 | any later version. |
---|
10 | |
---|
11 | ### File Specific: |
---|
12 | main-programmer: Benjamin Grauer |
---|
13 | co-programmer: ... |
---|
14 | */ |
---|
15 | |
---|
16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
17 | |
---|
18 | #include "new_class_id.h" |
---|
19 | #include <cassert> |
---|
20 | |
---|
21 | /////////////////////////////////////////////////////////// |
---|
22 | //// CLASS ID definiton. ////////////////////////////////// |
---|
23 | /////////////////////////////////////////////////////////// |
---|
24 | /** |
---|
25 | * @brief standard constructor |
---|
26 | */ |
---|
27 | NewClassID::NewClassID () |
---|
28 | {} |
---|
29 | |
---|
30 | |
---|
31 | /** |
---|
32 | * @brief standard deconstructor |
---|
33 | */ |
---|
34 | NewClassID::~NewClassID () |
---|
35 | { |
---|
36 | // assert(_objectList != NULL); |
---|
37 | std::list<NewObjectListBase::ClassEntry>::iterator it; |
---|
38 | for (it = this->_classes.begin(); it != this->_classes.end(); ++it) |
---|
39 | (*it)._objectList->unregisterObject((*it)._iterator); |
---|
40 | //_objectList->unregisterObject(this->_iterators); |
---|
41 | } |
---|
42 | |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.