Important: The information in this document is obsolete and should not be used for new development.
GetODRefCntObjectDestructor
Retrieves a destructor for a reference-counted object.
ParamDestructorUPP GetODRefCntObjectDestructor ();
- return value
- A pointer to a destructor function that takes two parameters: an environment pointer and a pointer of type
ODRefCntObject*
; the function returns no value. The function has the following form:void
ODRefCntObjectDestructor (Environment* ev,
ODRefCntObject* refCntObj);DISCUSSION
You call this method to retrieve a destructor function suitable for anODRefCntObject
object. The destructor function releases the object, as shown in the following example:
ODRefCntObjectDestructor (Environment* ev, ODRefCntObject* refCntObj) { refCntObj->Release(ev); }If you subclassParameterSet
, do not override this method.