Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/lang/new_class_id.cc @ 9671

Last change on this file since 9671 was 9671, checked in by bensch, 18 years ago

trunk: just realized, that polimorphism again is the evil part of classes.
Classes, that derive say from PNode and Element2D force that Element2D is registered after PNode, which means, that Element2D is interpretet as being derived from PNode in my implmentational idea…
hmm… now go for some new approach, this cannot and will not be the end of this…

File size: 924 bytes
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 */
27NewClassID::NewClassID ()
28    : _objectList(NULL)
29{}
30
31
32/**
33 * @brief standard deconstructor
34 */
35NewClassID::~NewClassID ()
36{
37  assert(_objectList != NULL);
38  _objectList->unregisterObject(this->_iterators);
39}
40
41
Note: See TracBrowser for help on using the repository browser.