SkTRegistry< T, P > Class Template Reference

#include <SkTRegistry.h>

Collaboration diagram for SkTRegistry< T, P >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef T(* Factory )(P)

Public Member Functions

 SkTRegistry (Factory fact)
const SkTRegistrynext () const
Factory factory () const

Static Public Member Functions

static const SkTRegistryHead ()

Detailed Description

template<typename T, typename P>
class SkTRegistry< T, P >

Template class that registers itself (in the constructor) into a linked-list and provides a function-pointer. This can be used to auto-register a set of services, e.g. a set of image codecs.

Definition at line 26 of file SkTRegistry.h.


Member Typedef Documentation

template<typename T, typename P>
typedef T(* SkTRegistry< T, P >::Factory)(P)

Definition at line 28 of file SkTRegistry.h.


Constructor & Destructor Documentation

template<typename T, typename P>
SkTRegistry< T, P >::SkTRegistry ( Factory  fact  )  [inline]

Definition at line 30 of file SkTRegistry.h.


Member Function Documentation

template<typename T, typename P>
Factory SkTRegistry< T, P >::factory (  )  const [inline]

Definition at line 51 of file SkTRegistry.h.

template<typename T, typename P>
static const SkTRegistry* SkTRegistry< T, P >::Head (  )  [inline, static]

Definition at line 48 of file SkTRegistry.h.

template<typename T, typename P>
const SkTRegistry* SkTRegistry< T, P >::next (  )  const [inline]

Definition at line 50 of file SkTRegistry.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