Developer Documentation
|
#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Core/Utils/SingletonT.hh>
Static Public Member Functions | |
static T & | Instance () |
Private Member Functions | |
SingletonT (const SingletonT &) | |
SingletonT & | operator= (const SingletonT &) |
Static Private Member Functions | |
static void | Create () |
static void | OnDeadReference () |
Static Private Attributes | |
static T * | pInstance__ = 0 |
static bool | destroyed__ = false |
A simple singleton template. Encapsulates an arbitrary class and enforces its uniqueness.
Definition at line 79 of file SingletonT.hh.
|
inlinestatic |
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 89 of file SingletonT.hh.