TimerSubscriberSingleton< T > Class Template Reference

#include <timer.h>

Inheritance diagram for TimerSubscriberSingleton< T >:
TimerSubscriber Singleton< T > zmm::Object

Public Member Functions

virtual void timerNotify (zmm::Ref< zmm::Object > parameter)=0
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 void init ()
virtual void shutdown ()
virtual void registerSingleton ()

Protected Attributes

mt_atomic_t _ref_count

Static Protected Attributes

static zmm::Ref< Mutexmutex
static zmm::Ref< T > instance = nil
static bool singletonActive = true

Detailed Description

template<class T>
class TimerSubscriberSingleton< T >

Definition at line 58 of file timer.h.


Member Function Documentation

template<class T>
static zmm::Ref<T> Singleton< T >::getInstance (  )  [inline, static, inherited]

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().

template<class T>
virtual void Singleton< T >::init (  )  [inline, protected, virtual, inherited]

Reimplemented in ContentManager, Server, SQLStorage, Storage, and UpdateManager.

Definition at line 87 of file singleton.h.

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

template<class T>
virtual void Singleton< T >::registerSingleton (  )  [inline, protected, virtual, inherited]

Definition at line 94 of file singleton.h.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
template<class T>
virtual void Singleton< T >::shutdown (  )  [inline, protected, virtual, inherited]

Reimplemented in ContentManager, Server, SQLStorage, Storage, Timer, and UpdateManager.

Definition at line 88 of file singleton.h.

virtual void TimerSubscriber::timerNotify ( zmm::Ref< zmm::Object parameter  )  [pure virtual, inherited]

Implemented in ContentManager, and SessionManager.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
template<class T>
zmm::Ref< T > Singleton< T >::instance = nil [inline, static, protected, inherited]
template<class T>
zmm::Ref<Mutex> Singleton< T >::mutex [static, protected, inherited]

Reimplemented from zmm::Object.

Definition at line 90 of file singleton.h.

Referenced by Singleton< SessionManager >::getInstance().

template<class T>
bool Singleton< T >::singletonActive = true [inline, static, protected, inherited]

The documentation for this class was generated from the following file:

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1