Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2007, 7:19:54 PM (12 years ago)
Author:
landauf
Message:

added "MetaObjectList", containing the list-element of the ObjectList of all classes an object is registered in. this allowes much faster deleting of objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchie/src/ObjectList.h

    r224 r246  
    4444            ObjectList();
    4545            ~ObjectList();
    46             void add(T* object);
     46            ObjectListElement<T>* add(T* object);
    4747            void remove(OrxonoxClass* object, bool bIterateForwards = true);
    4848
     
    7171
    7272    template <class T>
    73     void ObjectList<T>::add(T* object)
     73    ObjectListElement<T>* ObjectList<T>::add(T* object)
    7474    {
    7575        if (!this->last_)
     
    8585            temp->next_ = this->last_;
    8686        }
     87
     88        return this->last_;
    8789    }
    8890
Note: See TracChangeset for help on using the changeset viewer.