56 #include <OpenMesh/Core/System/config.h> 115 static T theInstance;
116 pInstance__ = &theInstance;
120 static void OnDeadReference()
122 throw std::runtime_error(
"[Singelton error] - Dead reference detected!\n");
131 static T* pInstance__;
132 static bool destroyed__;
140 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_SINGLETON_C) 141 # define OPENMESH_SINGLETON_TEMPLATES 142 # include "SingletonT_impl.hh" A simple singleton template.
Definition: SingletonT.hh:76
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:86