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
|
Rev | Line | |
---|
[4744] | 1 | /* |
---|
[1853] | 2 | orxonox - the future of 3D-vertical-scrollers |
---|
| 3 | |
---|
[9659] | 4 | Copyright (C) 2006 orx |
---|
[1853] | 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. |
---|
[1855] | 10 | |
---|
| 11 | ### File Specific: |
---|
[9659] | 12 | main-programmer: Benjamin Grauer |
---|
[1855] | 13 | co-programmer: ... |
---|
[1853] | 14 | */ |
---|
| 15 | |
---|
[3955] | 16 | //#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_ |
---|
[1853] | 17 | |
---|
[9659] | 18 | #include "new_class_id.h" |
---|
| 19 | #include <cassert> |
---|
[1853] | 20 | |
---|
[9659] | 21 | /////////////////////////////////////////////////////////// |
---|
| 22 | //// CLASS ID definiton. ////////////////////////////////// |
---|
| 23 | /////////////////////////////////////////////////////////// |
---|
[3245] | 24 | /** |
---|
[9659] | 25 | * @brief standard constructor |
---|
| 26 | */ |
---|
| 27 | NewClassID::NewClassID () |
---|
[9660] | 28 | {} |
---|
[1853] | 29 | |
---|
| 30 | |
---|
[3245] | 31 | /** |
---|
[9659] | 32 | * @brief standard deconstructor |
---|
| 33 | */ |
---|
| 34 | NewClassID::~NewClassID () |
---|
[3543] | 35 | { |
---|
[9672] | 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); |
---|
[3543] | 41 | } |
---|
[9659] | 42 | |
---|
| 43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.