Go to the source code of this file.
Functions | |
template<class RefCountType> void | unref_delete (RefCountType *ptr) |
This global helper function will unref the given ReferenceCount object, and if the reference count reaches zero, automatically delete it. |
Definition in file referenceCount.I.
|
This global helper function will unref the given ReferenceCount object, and if the reference count reaches zero, automatically delete it. It can't be a member function because it's usually a bad idea to delete an object from within its own member function. It's a template function so the destructor doesn't have to be virtual. Definition at line 368 of file referenceCount.I. References INLINE. Referenced by TransformState::get_num_unused_states(). |