Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

Singleton.h

Go to the documentation of this file.
00001 #ifndef X3DTK_SINGLETON_H
00002 #define X3DTK_SINGLETON_H
00003 
00004 namespace X3DTK {
00005 
00006 template<class T>
00007 class Singleton
00008 {
00009 public:
00010   static T *getInstance();
00011   static void removeInstance();
00012 
00013 private:
00014   static T *_instance;  
00015 };
00016 
00017 }
00018 
00019 #include "Singleton.inl"
00020 
00021 #endif

Generated on Thu Jun 3 10:12:09 2004 for X3DToolKit by doxygen 1.3.6