Singleton.h

Go to the documentation of this file.
00001 #ifndef X3DTK_SINGLETON_H
00002 #define X3DTK_SINGLETON_H
00003 
00004 namespace X3DTK {
00005 
00016 template<class T>
00017 class Singleton
00018 {
00019 public:
00021   static T *getInstance();
00023   static void removeInstance();
00024 
00025 private:
00026   static T *_instance;  
00027 };
00028 
00029 }
00030 
00031 #include "Singleton.inl"
00032 
00033 #endif

Generated on Fri Jul 30 12:02:28 2004 for X3DToolKit by doxygen 1.3.6