#include <SkTemplates.h>
Public Member Functions | |
SkAutoTCallIProc (T *obj) | |
~SkAutoTCallIProc () | |
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 53 of file SkTemplates.h.
SkAutoTCallIProc< T, P >::SkAutoTCallIProc | ( | T * | obj | ) | [inline] |
Definition at line 55 of file SkTemplates.h.
SkAutoTCallIProc< T, P >::~SkAutoTCallIProc | ( | ) | [inline] |
Definition at line 56 of file SkTemplates.h.
T* SkAutoTCallIProc< T, P >::detach | ( | ) | [inline] |
Definition at line 57 of file SkTemplates.h.