Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 21, 2006, 4:14:57 PM (18 years ago)
Author:
bensch
Message:

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

Legend:

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

    r9667 r9671  
    2626
    2727private:
    28   NewObjectListBase*            _objectList;
     28  NewObjectListBase*                           _objectList;
    2929  std::list<NewObjectListBase::IteratorBase*>  _iterators; //!< Iterators to the class-list's positions.
    3030};
    3131
    3232
    33 template<class T> void NewClassID::registerObject(T* object, NewObjectList<T>& objectList)
     33template<class T>
     34    inline void NewClassID::registerObject(T* object, NewObjectList<T>& objectList)
    3435{
    3536  this->_objectList = &objectList;
    36   _iterators.push_back(objectList.registerObject(object));
     37  _iterators.push_back(objectList.registerObject(object, this->_objectList));
    3738}
    3839
Note: See TracChangeset for help on using the changeset viewer.