RioEngine  0.1
My first attempt to create a 3D WYSIWYG Game Engine
CSingleton< T > Class Template Reference

#include <csingleton.h>

Inheritance diagram for CSingleton< T >:
CObject

Static Public Member Functions

static T * getSharedInstance ()
 
static void free ()
 
- Static Public Member Functions inherited from CObject
static void safeRetain (void *pointer)
 
template<class T >
static void safeRelease (T *pointer)
 
template<class T >
static void safeReleaseArray (T *array)
 
static void safeRelease (const char *pointer)
 

Protected Member Functions

 CSingleton ()
 
- Protected Member Functions inherited from CObject
virtual void copyValuesFromObject (const CObject &object)
 

Additional Inherited Members

- Public Member Functions inherited from CObject
 CObject ()
 
 CObject (const CObject &object)
 
CObjectoperator= (const CObject &object)
 
CObjectretain ()
 
unsigned int release () const
 
CObjectautorelease ()
 
unsigned int retainCount () const
 
bool isValidCObject () const
 
virtual ~CObject ()
 

Detailed Description

template<class T>
class CSingleton< T >

Provides a shared instance for the specified class

Definition at line 39 of file csingleton.h.

Constructor & Destructor Documentation

template<class T >
CSingleton< T >::CSingleton ( )
inlineexplicitprotected

Definition at line 54 of file csingleton.h.

Member Function Documentation

template<class T >
static void CSingleton< T >::free ( )
inlinestatic

Definition at line 49 of file csingleton.h.

template<class T >
static T* CSingleton< T >::getSharedInstance ( )
inlinestatic

Definition at line 42 of file csingleton.h.


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