Changeset 6417 for code/trunk/src/libraries/core/OrxonoxClass.h
- Timestamp:
- Dec 25, 2009, 10:23:58 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/OrxonoxClass.h
r6105 r6417 73 73 74 74 void destroy(); 75 void unregisterObject(); 75 76 76 77 /** @brief Function to collect the SetConfigValue-macro calls. */ … … 134 135 { return const_cast<OrxonoxClass*>(this)->getDerivedPointer<T>(classID); } 135 136 137 protected: 138 virtual void preDestroy() {} 139 136 140 private: 137 141 /** @brief Increments the reference counter (for smart pointers). */ … … 140 144 /** @brief Decrements the reference counter (for smart pointers). */ 141 145 inline void decrementReferenceCount() 142 { --this->referenceCount_; if (this->referenceCount_ == 0 && this->requestedDestruction_) { delete this; } } 143 146 { 147 --this->referenceCount_; 148 if (this->referenceCount_ == 0 && this->requestedDestruction_) 149 this->destroy(); 150 } 151 144 152 /** @brief Register a weak pointer which points to this object. */ 145 153 template <class T>
Note: See TracChangeset
for help on using the changeset viewer.