Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Common::Singleton< T > Class Template Reference

#include <singleton.h>

Inheritance diagram for Common::Singleton< T >:

Common::NonCopyable Common::ConfigManager GUI::GuiManager

List of all members.

Detailed Description

template<class T>
class Common::Singleton< T >

Generic template base class for implementing the singleton design pattern.

Definition at line 37 of file singleton.h.

Static Public Member Functions

static void destroy ()
static T & instance ()

Protected Types

typedef T SingletonBaseType

Private Member Functions

Singleton< T > & operator= (const Singleton< T > &)
 Singleton (const Singleton< T > &)

Static Private Member Functions

static void destroyInstance ()
static T * makeInstance ()

Static Private Attributes

static T * _singleton

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

Generated by  Doxygen 1.6.0   Back to index