adchpp::Singleton< T > Class Template Reference

#include <Singleton.h>

Inheritance diagram for adchpp::Singleton< T >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Singleton ()
virtual ~Singleton ()

Static Public Member Functions

static void deleteInstance ()
static T * getInstance ()
static void newInstance ()

Private Member Functions

Singletonoperator= (const Singleton &)
 Singleton (const Singleton &)

Detailed Description

template<typename T>
class adchpp::Singleton< T >

Bug:
Plugins instantiating this class must provide the instance variable manually because of DLL linking issues on mingw (otherwise it seems each DLL gets their own instance).

Definition at line 32 of file Singleton.h.


Constructor & Destructor Documentation

template<typename T>
adchpp::Singleton< T >::Singleton (  )  [inline]

Definition at line 34 of file Singleton.h.

template<typename T>
virtual adchpp::Singleton< T >::~Singleton (  )  [inline, virtual]

Definition at line 35 of file Singleton.h.

template<typename T>
adchpp::Singleton< T >::Singleton ( const Singleton< T > &   )  [private]

Member Function Documentation

template<typename T>
static void adchpp::Singleton< T >::deleteInstance (  )  [inline, static]

Definition at line 49 of file Singleton.h.

template<typename T>
static T* adchpp::Singleton< T >::getInstance (  )  [inline, static]

Definition at line 37 of file Singleton.h.

Referenced by adchpp::ClientManager::ClientManager(), adchpp::Bot::die(), and adchpp::Entity::inject().

Here is the caller graph for this function:

template<typename T>
static void adchpp::Singleton< T >::newInstance (  )  [inline, static]

Definition at line 42 of file Singleton.h.

template<typename T>
Singleton& adchpp::Singleton< T >::operator= ( const Singleton< T > &   )  [private]
Generated on Sat Nov 27 23:38:51 2010 for adchpp by  doxygen 1.6.3