Changeset 6423 for code/trunk/src/libraries/core/CoreIncludes.h
- Timestamp:
- Dec 27, 2009, 12:09:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/CoreIncludes.h
r5929 r6423 125 125 return Identifier::getIdentifierByID(id); 126 126 } 127 128 /** 129 @brief Returns the Identifier with a given 'this' pointer. 130 @note This of course only works with OrxonoxClasses. 131 The only use is in conjunction with macros that don't know the class type. 132 @param Pointer to an OrxonoxClass 133 */ 134 template <class T> 135 inline Identifier* ClassByObjectType(const T* object) 136 { 137 return ClassIdentifier<T>::getIdentifier(); 138 } 127 139 } 128 140
Note: See TracChangeset
for help on using the changeset viewer.