Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

CSingletonFactory< T > Class Template Reference

#include <csingletonmanager.h>

List of all members.

Private Member Functions

virtual T * make_singleton ()=0

Friends

class CSingletonManager< T >


Detailed Description

template<class T>
class CSingletonFactory< T >

The template for an abstract factory class, to be used in parallel with CSingletonManager. For a detailed description, see the documentation for the csingletonmanager.h file.

Definition at line 138 of file csingletonmanager.h.


Member Function Documentation

template<class T>
virtual T* CSingletonFactory< T >::make_singleton  )  [private, pure virtual]
 

The abstract factory class' single factory method, which must be defined by an implementation. The only thing it does is create and return a new instance of a singleton.

Implemented in SDLDriver::CEventSystemFactorySDL, SDLDriver::CTimerSystemFactorySDL, and SDLDriver::CVideoSystemFactorySDL.


Friends And Related Function Documentation

template<class T>
friend class CSingletonManager< T > [friend]
 

Allow the manager to access our private factory method, CSingletonFactory::make_singleton().

Definition at line 142 of file csingletonmanager.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 27 11:59:00 2003 for GFW by doxygen 1.3.3