GetSOMObjectDestructor
Retrieves a destructor for a SOM object.
ParamDestructorUPP GetSOMObjectDestructor ();
- return value
- A pointer to a destructor function that takes two parameters: an environment pointer and a pointer to a
SOMObject; the function returns no value. The function has the following form:
void SOMObjectDestructor (Environment* ev,
SOMObject* somObject);
-
DISCUSSION
You call this method to retrieve a suitable destructor function for a SOM object. The destructor function deletes the object, as shown in the following example:
SOMObjectDestructor (Environment* ev, SOMObject* somObject)
{
delete somObject;
}
If you subclass ParameterSet, do not override this method.