#include <singleton.h>
Static Public Member Functions | |
static T & | instance () |
Protected Member Functions | |
Singleton () | |
~Singleton () | |
Static Private Member Functions | |
static void | initSingleton () |
Static Private Attributes | |
static boost::once_flag | flag = BOOST_ONCE_INIT |
static boost::scoped_ptr< T > | t |
Definition at line 21 of file singleton.h.
Templates::Singleton< T >::Singleton | ( | ) | [inline, protected] |
Definition at line 36 of file singleton.h.
Templates::Singleton< T >::~Singleton | ( | ) | [inline, protected] |
Definition at line 38 of file singleton.h.
static void Templates::Singleton< T >::initSingleton | ( | ) | [inline, static, private] |
Method initializates the object and calls it's constructor.
Definition at line 43 of file singleton.h.
static T& Templates::Singleton< T >::instance | ( | ) | [inline, static] |
Method returns a non-copyable reference to stored object instance.
Definition at line 27 of file singleton.h.
boost::once_flag Singleton::flag = BOOST_ONCE_INIT [static, private] |
Initialization of once_flag.
Definition at line 50 of file singleton.h.
boost::scoped_ptr< T > Singleton::t [static, private] |
Initialization of scoped pointer.
Definition at line 49 of file singleton.h.