#include <SingletonT.hh>
Static Public Member Functions | |
| static T & | Instance () |
Private Member Functions | |
| SingletonT & | operator= (const SingletonT &) |
| SingletonT (const SingletonT &) | |
| SingletonT () | |
| virtual | ~SingletonT () |
Static Private Member Functions | |
| static void | Create () |
| static void | OnDeadReference () |
Static Private Attributes | |
| static bool | destroyed__ = false |
| static T * | pInstance__ = 0 |
A simple singleton template. Encapsulates an arbitrary class and enforces its uniqueness.
Definition at line 78 of file SingletonT.hh.
| OpenMesh::SingletonT< T >::SingletonT | ( | ) | [private] |
| OpenMesh::SingletonT< T >::SingletonT | ( | const SingletonT< T > & | ) | [private] |
| virtual OpenMesh::SingletonT< T >::~SingletonT | ( | ) | [inline, private, virtual] |
Definition at line 127 of file SingletonT.hh.
| static void OpenMesh::SingletonT< T >::Create | ( | ) | [inline, static, private] |
Definition at line 115 of file SingletonT.hh.
| static T& OpenMesh::SingletonT< T >::Instance | ( | ) | [inline, static] |
Singleton access function. Use this function to obtain a reference to the instance of the encapsulated class. Note that this instance is unique and created on the first call to Instance().
Definition at line 88 of file SingletonT.hh.
| static void OpenMesh::SingletonT< T >::OnDeadReference | ( | ) | [inline, static, private] |
Definition at line 122 of file SingletonT.hh.
| SingletonT& OpenMesh::SingletonT< T >::operator= | ( | const SingletonT< T > & | ) | [private] |
bool OpenMesh::SingletonT< T >::destroyed__ = false [inline, static, private] |
Definition at line 134 of file SingletonT.hh.
T * OpenMesh::SingletonT< T >::pInstance__ = 0 [inline, static, private] |
Definition at line 133 of file SingletonT.hh.