ScummVM API documentation
Common::Singleton< T > Class Template Reference

#include <singleton.h>

Inheritance diagram for Common::Singleton< T >:
Common::NonCopyable

Static Public Member Functions

static bool hasInstance ()
 
static T & instance ()
 
static void destroy ()
 

Protected Types

typedef T SingletonBaseType
 

Static Protected Attributes

static T * _singleton
 

Detailed Description

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

Generic template base class for implementing the singleton design pattern.


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