#include <Singleton.h>
Public Member Functions | |
| Singleton () | |
The constructor will throw an exception if an object of type T already exists. | |
| virtual | ~Singleton () |
Clears the value of the static singleton pointer so another object of type T can be created. | |
Static Public Member Functions | |
| static T & | getSingleton () |
| static T * | getSingletonPtr () |
When using this class, the deriving class should specify itself as the template parameter.
| PWToolBox::Singleton< T >::Singleton | ( | ) | [inline] |
The constructor will throw an exception if an object of type T already exists.
| SingletonException | Thrown when an object of type T already exists |
| virtual PWToolBox::Singleton< T >::~Singleton | ( | ) | [inline, virtual] |
Clears the value of the static singleton pointer so another object of type T can be created.
| static T& PWToolBox::Singleton< T >::getSingleton | ( | ) | [inline, static] |
| static T* PWToolBox::Singleton< T >::getSingletonPtr | ( | ) | [inline, static] |
1.5.1