Changeset 9682 in orxonox.OLD for trunk/src/lib/lang/new_class_id.h
- Timestamp:
- Aug 22, 2006, 12:31:29 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/new_class_id.h
r9681 r9682 13 13 #include <list> 14 14 15 16 15 //! A class to dynamically allocate ClassID's and support a isA operator 17 16 class NewClassID … … 21 20 ~NewClassID(); 22 21 23 int leafClassID() const { return _classes.front()._objectList->id(); } 22 /** @returns the ClassName of the Topmost Object of the ClassStack */ 23 inline const std::string& getClassName() const { return _classes.front()._objectList->name(); } 24 /** @returns the ID of the Topmost object of the ClassStack */ 25 inline int leafClassID() const { return _classes.front()._objectList->id(); } 24 26 25 27 template<class T> void registerObject(T* object, NewObjectList<T>& list);
Note: See TracChangeset
for help on using the changeset viewer.