#include <singleton.h>
Public Member Functions | |
| void | retain () |
| void | release () |
| int | getRefCount () |
Static Public Member Functions | |
| static zmm::Ref< T > | getInstance () |
| static void * | operator new (size_t size) |
| static void | operator delete (void *ptr) |
Protected Member Functions | |
| virtual | ~Singleton () |
| virtual void | init () |
| virtual void | shutdown () |
| virtual void | registerSingleton () |
Protected Attributes | |
| mt_atomic_t | _ref_count |
Static Protected Attributes | |
| static zmm::Ref< Mutex > | mutex |
| static zmm::Ref< T > | instance = nil |
| static bool | singletonActive = true |
Private Member Functions | |
| virtual void | inactivateSingleton () |
| virtual void | reactivateSingleton () |
Friends | |
| class | SingletonManager |
Definition at line 59 of file singleton.h.
Definition at line 85 of file singleton.h.
Reimplemented in Storage.
Definition at line 62 of file singleton.h.
Referenced by Singleton< SessionManager >::registerSingleton().
| int Object::getRefCount | ( | ) | [inherited] |
Definition at line 78 of file object.cc.
References zmm::Object::_ref_count, and atomic_get().
| virtual void Singleton< T >::inactivateSingleton | ( | ) | [inline, private, virtual] |
Definition at line 101 of file singleton.h.
| virtual void Singleton< T >::init | ( | ) | [inline, protected, virtual] |
Reimplemented in ContentManager, Server, SQLStorage, Storage, and UpdateManager.
Definition at line 87 of file singleton.h.
| void Object::operator delete | ( | void * | ptr | ) | [static, inherited] |
| void * Object::operator new | ( | size_t | size | ) | [static, inherited] |
| virtual void Singleton< T >::reactivateSingleton | ( | ) | [inline, private, virtual] |
Definition at line 107 of file singleton.h.
| virtual void Singleton< T >::registerSingleton | ( | ) | [inline, protected, virtual] |
Definition at line 94 of file singleton.h.
| void Object::release | ( | ) | [inherited] |
Definition at line 66 of file object.cc.
References zmm::Object::_ref_count, atomic_dec(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::clear(), zmm::String::operator=(), DSOHash< zmm::Array< CacheObject > >::releaseData(), DSBHash< VT >::releaseData(), DSOHash< zmm::Array< CacheObject > >::remove(), zmm::ArrayBase::remove(), zmm::ArrayBase::removeUnordered(), zmm::ArrayBase::set(), zmm::ArrayBase::~ArrayBase(), DSOHash< zmm::Array< CacheObject > >::~DSOHash(), zmm::ObjectQueue< AutoscanDirectory >::~ObjectQueue(), zmm::ObjectStack< Element >::~ObjectStack(), and zmm::String::~String().
| void Object::retain | ( | ) | [inherited] |
Definition at line 58 of file object.cc.
References zmm::Object::_ref_count, atomic_inc(), and zmm::Object::mutex.
Referenced by zmm::ArrayBase::append(), zmm::ObjectQueue< AutoscanDirectory >::enqueue(), zmm::ArrayBase::insert(), zmm::String::operator=(), zmm::ObjectStack< Element >::push(), DSOHash< zmm::Array< CacheObject > >::put(), DSBHash< VT >::put(), zmm::ArrayBase::set(), and zmm::String::String().
| virtual void Singleton< T >::shutdown | ( | ) | [inline, protected, virtual] |
Reimplemented in ContentManager, Server, SQLStorage, Storage, Timer, and UpdateManager.
Definition at line 88 of file singleton.h.
friend class SingletonManager [friend] |
Definition at line 109 of file singleton.h.
mt_atomic_t zmm::Object::_ref_count [protected, inherited] |
Definition at line 54 of file object.h.
Referenced by zmm::Object::getRefCount(), zmm::Object::Object(), zmm::Object::release(), and zmm::Object::retain().
Definition at line 91 of file singleton.h.
Referenced by Singleton< SessionManager >::getInstance(), and Singleton< SessionManager >::inactivateSingleton().
Reimplemented from zmm::Object.
Definition at line 90 of file singleton.h.
Referenced by Singleton< SessionManager >::getInstance().
bool Singleton< T >::singletonActive = true [inline, static, protected] |
Definition at line 92 of file singleton.h.
Referenced by Singleton< SessionManager >::getInstance(), Singleton< SessionManager >::inactivateSingleton(), and Singleton< SessionManager >::reactivateSingleton().
1.6.1