SkAutoTCallVProc< T, P > Class Template Reference

#include <SkTemplates.h>

List of all members.

Public Member Functions

 SkAutoTCallVProc (T *obj)
 ~SkAutoTCallVProc ()
T * detach ()

Detailed Description

template<typename T, void(*)(T *) P>
class SkAutoTCallVProc< T, P >

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.


Constructor & Destructor Documentation

template<typename T , void(*)(T *) P>
SkAutoTCallVProc< T, P >::SkAutoTCallVProc ( T *  obj  )  [inline]

Definition at line 38 of file SkTemplates.h.

template<typename T , void(*)(T *) P>
SkAutoTCallVProc< T, P >::~SkAutoTCallVProc (  )  [inline]

Definition at line 39 of file SkTemplates.h.


Member Function Documentation

template<typename T , void(*)(T *) P>
T* SkAutoTCallVProc< T, P >::detach (  )  [inline]

Definition at line 40 of file SkTemplates.h.


The documentation for this class was generated from the following file:

Generated on Tue Oct 20 11:03:41 2009 for Skia by  doxygen 1.6.1