- Timestamp:
- Nov 6, 2010, 3:05:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ois_update/src/libraries/core/OrxonoxClass.h
r7401 r7621 136 136 Returns NULL if the no pointer was found. 137 137 */ 138 FORCEINLINE void* getDerivedPointer(unsigned int classID)138 ORX_FORCEINLINE void* getDerivedPointer(unsigned int classID) 139 139 { 140 140 for (int i = this->objectPointers_.size() - 1; i >= 0; --i) … … 147 147 148 148 /// Version of getDerivedPointer with template 149 template <class T> FORCEINLINE T* getDerivedPointer(unsigned int classID)149 template <class T> ORX_FORCEINLINE T* getDerivedPointer(unsigned int classID) 150 150 { return static_cast<T*>(this->getDerivedPointer(classID)); } 151 151 /// Const version of getDerivedPointer with template 152 template <class T> FORCEINLINE const T* getDerivedPointer(unsigned int classID) const152 template <class T> ORX_FORCEINLINE const T* getDerivedPointer(unsigned int classID) const 153 153 { return const_cast<OrxonoxClass*>(this)->getDerivedPointer<T>(classID); } 154 154
Note: See TracChangeset
for help on using the changeset viewer.