#include <Singleton.h>
Inheritance diagram for Singleton< T >:


Static Public Methods | |
| T & | getObj () |
Protected Methods | |
| Singleton () | |
Static Protected Methods | |
| void | releaseObj () |
| should only be called by the class that inherits the Singleton functionality after the subclasses releases all its necessary resources | |
Static Private Attributes | |
| T * | m_pSingleton = 0 |
|
|||||||||
|
Definition at line 49 of file Singleton.h.
00049 { }
|
|
|||||||||
|
Definition at line 55 of file Singleton.h. References Singleton< T >::m_pSingleton, and T.
00056 {
00057 if( m_pSingleton == 0 )
00058 {
00059 m_pSingleton = new T;
00060 assert(m_pSingleton);
00061 }
00062 return *m_pSingleton;
00063 }
|
|
|||||||||
|
should only be called by the class that inherits the Singleton functionality after the subclasses releases all its necessary resources
Definition at line 66 of file Singleton.h. References Singleton< T >::m_pSingleton.
00067 {
00068 delete m_pSingleton;
00069 m_pSingleton = 0;
00070 }
|
|
|||||
|
Definition at line 52 of file Singleton.h. Referenced by Singleton< T >::getObj(), and Singleton< T >::releaseObj(). |
1.3-rc2