1
#ifndef FNB_SINGLETON_H
2
#define FNB_SINGLETON_H
5
* A template class that implements the wxFNBSingleton pattern.
13
static T* ms_instance;
16
* Static method to access the only pointer of this instance.
17
* \return a pointer to the only instance of this
28
* Default constructor.
35
virtual ~wxFNBSingleton();
38
T* wxFNBSingleton<T>::ms_instance = 0;
41
wxFNBSingleton<T>::wxFNBSingleton()
46
wxFNBSingleton<T>::~wxFNBSingleton()
51
T* wxFNBSingleton<T>::Get()
54
ms_instance = new T();
59
void wxFNBSingleton<T>::Free()
68
#endif // FNB_SINGLETON_H