SkTRefCnt< T > Class Template Reference

#include <SkGroupShape.h>

List of all members.

Public Member Functions

 SkTRefCnt ()
 ~SkTRefCnt ()
int32_t getRefCnt () const
void ref () const
void unref () const

Static Public Member Functions

static void SafeRef (const SkTRefCnt *obj)
static void SafeUnref (const SkTRefCnt *obj)

Detailed Description

template<typename T>
class SkTRefCnt< T >

Definition at line 9 of file SkGroupShape.h.


Constructor & Destructor Documentation

template<typename T>
SkTRefCnt< T >::SkTRefCnt (  )  [inline]

Definition at line 11 of file SkGroupShape.h.

template<typename T>
SkTRefCnt< T >::~SkTRefCnt (  )  [inline]

Definition at line 12 of file SkGroupShape.h.


Member Function Documentation

template<typename T>
int32_t SkTRefCnt< T >::getRefCnt (  )  const [inline]

Definition at line 14 of file SkGroupShape.h.

template<typename T>
void SkTRefCnt< T >::ref (  )  const [inline]

Increment the reference count. Must be balanced by a call to unref().

Definition at line 18 of file SkGroupShape.h.

template<typename T>
static void SkTRefCnt< T >::SafeRef ( const SkTRefCnt< T > *  obj  )  [inline, static]

Definition at line 36 of file SkGroupShape.h.

template<typename T>
static void SkTRefCnt< T >::SafeUnref ( const SkTRefCnt< T > *  obj  )  [inline, static]

Definition at line 42 of file SkGroupShape.h.

template<typename T>
void SkTRefCnt< T >::unref (  )  const [inline]

Decrement the reference count. If the reference count is 1 before the decrement, then call delete on the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.

Definition at line 28 of file SkGroupShape.h.


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

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