57 #ifndef __SINGLETON_HH__ 58 #define __SINGLETON_HH__ 64 #include <OpenMesh/Core/System/config.h> 123 static T theInstance;
124 pInstance__ = &theInstance;
128 static void OnDeadReference()
130 throw std::runtime_error(
"[Singelton error] - Dead reference detected!\n");
139 static T* pInstance__;
140 static bool destroyed__;
148 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_SINGLETON_C) 149 # define OPENMESH_SINGLETON_TEMPLATES 150 # include "SingletonT.cc" 153 #endif // __SINGLETON_HH__ static T & Instance()
Singleton access function.
Definition: SingletonT.hh:94
A simple singleton template.
Definition: SingletonT.hh:84
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64