Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 1, 2006, 11:56:54 PM (18 years ago)
Author:
bensch
Message:

more thoughts on Resources, and soon going to adapt… i think i've got a clue :)

File:
1 edited

Legend:

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

    r9716 r9718  
    4848  inline const std::string& getClassName() const { return _classes.front()._objectList->name(); };
    4949
    50   inline const ClassID& getClassID() const { return *_leafClassID; }
     50  inline const ClassID& getClassID() const { return _classes.front()._objectList->identity(); }
    5151  /** @returns the ID of the Topmost object of the ClassStack */
    52   inline const int& getLeafClassID() const { return _leafClassID->id(); }
     52  inline const int& getLeafClassID() const { return _classes.front()._objectList->identity().id(); }
    5353
    5454  bool isA(const ObjectListBase& objectList) const;
     
    8989  std::string                         className;    //!< the name of the class
    9090  ClassList                           _classes;     //!< All Classes this object is part of.
    91   const ClassID*                       _leafClassID;  //!< Topmost ClassID.
    9291};
    9392
     
    105104inline void BaseObject::registerObject(T* object, ObjectList<T>& objectList)
    106105{
    107   this->_leafClassID = &objectList.identity();
    108106  this->_classes.push_front(ClassEntry(&objectList, objectList.registerObject(object)));
    109107}
Note: See TracChangeset for help on using the changeset viewer.