Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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.h

    r9671 r9672  
    2626
    2727private:
    28   NewObjectListBase*                           _objectList;
    29   std::list<NewObjectListBase::IteratorBase*>  _iterators; //!< Iterators to the class-list's positions.
     28  std::list<NewObjectListBase::ClassEntry>       _classes;
    3029};
    3130
     
    3433    inline void NewClassID::registerObject(T* object, NewObjectList<T>& objectList)
    3534{
    36   this->_objectList = &objectList;
    37   _iterators.push_back(objectList.registerObject(object, this->_objectList));
     35  this->_classes.push_back(NewObjectListBase::ClassEntry(&objectList, objectList.registerObject(object)));
     36
     37  /*  this->_objectList = &objectList;
     38  _iterators.push_back(objectList.registerObject(object, this->_objectList));*/
    3839}
    3940
Note: See TracChangeset for help on using the changeset viewer.