library of assembled shared sources |
http://lass.cocamware.com |
#include <singleton_impl.h>
Public Member Functions | |
SingletonBase () | |
constructor. | |
virtual | ~SingletonBase () |
int | destructionPriority () const |
Protected Member Functions | |
void | subscribeInstance (int iDestructionPriority) |
Subscribe to the singleton guard. | |
Private Member Functions | |
void | swap (NonCopyable &) |
Private Attributes | |
int | destructionPriority_ |
Definition at line 60 of file singleton_impl.h.
lass::util::impl::SingletonBase::SingletonBase | ( | ) |
constructor.
Definition at line 154 of file singleton_impl.cpp.
lass::util::impl::SingletonBase::~SingletonBase | ( | ) | [virtual] |
Definition at line 161 of file singleton_impl.cpp.
int lass::util::impl::SingletonBase::destructionPriority | ( | ) | const |
Definition at line 167 of file singleton_impl.cpp.
References destructionPriority_.
Referenced by lass::util::Singleton< T, destructPriority >::instance(), and lass::util::impl::CompareDestructionPriority::operator()().
void lass::util::impl::SingletonBase::subscribeInstance | ( | int | iDestructionPriority | ) | [protected] |
Subscribe to the singleton guard.
Do this only once for each singleton, and in fact, don't do it yourself at all since Singleton<> already does it :)
Definition at line 181 of file singleton_impl.cpp.
References destructionPriority_, and lass::util::impl::SingletonGuard::instance().
Referenced by lass::util::Singleton< T, destructPriority >::instance().
void lass::util::NonCopyable::swap | ( | NonCopyable & | ) | [inline, protected, inherited] |
int lass::util::impl::SingletonBase::destructionPriority_ [private] |
Definition at line 75 of file singleton_impl.h.
Referenced by destructionPriority(), and subscribeInstance().
Generated on Mon Nov 10 14:22:20 2008 for Library of Assembled Shared Sources by 1.5.7.1 |