Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9672 in orxonox.OLD for trunk/src/lib/lang/new_class_id.cc


Ignore:
Timestamp:
Aug 21, 2006, 5:58:01 PM (18 years ago)
Author:
bensch
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/new_class_id.cc

    r9671 r9672  
    2626 */
    2727NewClassID::NewClassID ()
    28     : _objectList(NULL)
    2928{}
    3029
     
    3534NewClassID::~NewClassID ()
    3635{
    37   assert(_objectList != NULL);
    38   _objectList->unregisterObject(this->_iterators);
     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);
    3941}
    4042
Note: See TracChangeset for help on using the changeset viewer.