X3DTK::Singleton< T > Class Template Reference
[processor]

Template class declared in <X3DTK/kernel.h> defining a Singleton manager. More...

List of all members.

Static Public Member Functions


Detailed Description

template<class T>
class X3DTK::Singleton< T >

Template class declared in <X3DTK/kernel.h> defining a Singleton manager.

It simply gets the instance and remove the instance. A template singleton manager avoids the user to implement the pattern. In the library, it is commonly used with X3DTK::X3DProcessor and X3DTK::StateVariables.


Member Function Documentation

template<class T>
T* X3DTK::Singleton< T >::getInstance  )  [static]
 

Gets the instance. If no instance is created, then a new one is created.

template<class T>
void X3DTK::Singleton< T >::removeInstance  )  [static]
 

Removes the instance.


Generated on Fri Aug 27 13:16:30 2004 for X3DToolKit by doxygen 1.3.6