#include <singleton.h>
Static Public Member Functions | |
| static T & | instance () |
| Returns instance of the holding object. | |
Private Member Functions | |
| Singleton () | |
| ~Singleton () | |
| Singleton (const Singleton &) | |
| Singleton & | operator= (const Singleton &) |
Implements "singleton" design pattern - it is used to restrict instantiation of a class to one object only.
| Templates::Singleton< T >::Singleton | ( | ) | [private] |
| Templates::Singleton< T >::~Singleton | ( | ) | [private] |
| Templates::Singleton< T >::Singleton | ( | const Singleton< T > & | ) | [private] |
| Singleton& Templates::Singleton< T >::operator= | ( | const Singleton< T > & | ) | [private] |
| static T& Templates::Singleton< T >::instance | ( | ) | [inline, static] |
Returns instance of the holding object.
This function always returns a reference to the same object.
1.5.6