#include <SkTemplates.h>
Public Member Functions | |
SkAutoTCallVProc (T *obj) | |
~SkAutoTCallVProc () | |
T * | detach () |
Call a function when this goes out of scope. The template uses two parameters, the object, and a function that is to be called in the destructor. If detach() is called, the object reference is set to null. If the object reference is null when the destructor is called, we do not call the function.
Definition at line 36 of file SkTemplates.h.
SkAutoTCallVProc< T, P >::SkAutoTCallVProc | ( | T * | obj | ) | [inline] |
Definition at line 38 of file SkTemplates.h.
SkAutoTCallVProc< T, P >::~SkAutoTCallVProc | ( | ) | [inline] |
Definition at line 39 of file SkTemplates.h.
T* SkAutoTCallVProc< T, P >::detach | ( | ) | [inline] |
Definition at line 40 of file SkTemplates.h.