Changeset 9718 in orxonox.OLD for branches/new_class_id/src/lib/lang/base_object.h
- Timestamp:
- Sep 1, 2006, 11:56:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/lang/base_object.h
r9716 r9718 48 48 inline const std::string& getClassName() const { return _classes.front()._objectList->name(); }; 49 49 50 inline const ClassID& getClassID() const { return *_leafClassID; }50 inline const ClassID& getClassID() const { return _classes.front()._objectList->identity(); } 51 51 /** @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(); } 53 53 54 54 bool isA(const ObjectListBase& objectList) const; … … 89 89 std::string className; //!< the name of the class 90 90 ClassList _classes; //!< All Classes this object is part of. 91 const ClassID* _leafClassID; //!< Topmost ClassID.92 91 }; 93 92 … … 105 104 inline void BaseObject::registerObject(T* object, ObjectList<T>& objectList) 106 105 { 107 this->_leafClassID = &objectList.identity();108 106 this->_classes.push_front(ClassEntry(&objectList, objectList.registerObject(object))); 109 107 }
Note: See TracChangeset
for help on using the changeset viewer.