|
libpsynth 0.2.1
|
This is a generic singleton implementation. More...
#include <singleton.hpp>


Public Types | |
| typedef T | type |
Static Public Member Functions | |
| static T & | self () |
| Access the singleton only instance. | |
This is a generic singleton implementation.
Note that you should not usually inherit from it but rather just typedef with T as desired implementation of the singleton class. It can be parametrized with varied policies:
| CreationPolicy | Specifies the allocation policy to use. |
| LifetimePolicy | Specifies the order of singleton creation and other related issues |
| ThreadingPolicy | Wether you want the implementation to be thread-safe or not. |
| typedef T psynth::base::singleton_holder< T, CreationPolicy, LifetimePolicy, ThreadingPolicy >::type |
| static T& psynth::base::singleton_holder< T, CreationPolicy, LifetimePolicy, ThreadingPolicy >::self | ( | ) | [static] |
Access the singleton only instance.
1.7.4