Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 11:45:21 PM (18 years ago)
Author:
bensch
Message:

new_class_id: adapted Network

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/lang/base_object.h

    r9686 r9691  
    2626class BaseObject : public sigslot::has_slots<>
    2727{
    28 
     28  NewObjectListDeclaration(BaseObject);
    2929public:
    3030  BaseObject (const std::string& objectName = "");
     
    4949
    5050  /** @returns the ID of the Topmost object of the ClassStack */
    51   inline int getLeafClassID() const { return _classes.front()._objectList->id(); }
     51  inline const int& getLeafClassID() const { return _leafClassID->id(); }
    5252
    5353  bool isA(const NewObjectListBase& objectList) const;
     
    8888  std::string                         className;    //!< the name of the class
    8989  ClassList                           _classes;     //!< All Classes this object is part of.
    90 
     90  const NewClassID*                       _leafClassID;  //!< Topmost ClassID.
    9191};
    9292
     
    104104inline void BaseObject::registerObject(T* object, NewObjectList<T>& objectList)
    105105{
     106  this->_leafClassID = &objectList.identity();
    106107  this->_classes.push_front(ClassEntry(&objectList, objectList.registerObject(object)));
    107108}
Note: See TracChangeset for help on using the changeset viewer.