52 #ifndef __SINGLETON_HH__ 53 #define __SINGLETON_HH__ 59 #include <OpenMesh/Core/System/config.h> 118 static T theInstance;
119 pInstance__ = &theInstance;
123 static void OnDeadReference()
125 throw std::runtime_error(
"[Singelton error] - Dead reference detected!\n");
134 static T* pInstance__;
135 static bool destroyed__;
143 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_SINGLETON_C) 144 # define OPENMESH_SINGLETON_TEMPLATES 145 # include "SingletonT_impl.hh" 148 #endif // __SINGLETON_HH__ A simple singleton template.
Definition: SingletonT.hh:79
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
static T & Instance()
Singleton access function.
Definition: SingletonT.hh:89