SingletonNoArg< T > Class Template Reference

#include <Singleton.h>

Collaboration diagram for SingletonNoArg< T >:

Collaboration graph
[legend]
List of all members.

Static Public Member Functions

static T * getInstance ()

Static Private Attributes

static T * m_pInstance = 0

Detailed Description

template<typename T>
class SingletonNoArg< T >

Definition at line 24 of file Singleton.h.


Member Function Documentation

template<typename T>
static T* SingletonNoArg< T >::getInstance (  )  [inline, static]

Definition at line 26 of file Singleton.h.

Referenced by Logger::log_debug(), and Logger::log_error().

00026                             {
00027       if(SingletonNoArg<T>::m_pInstance == 0) {
00028         SingletonNoArg<T>::m_pInstance = new T();
00029         return SingletonNoArg<T>::m_pInstance;
00030       }
00031       else 
00032         return SingletonNoArg<T>::m_pInstance;
00033     }

Here is the caller graph for this function:


Member Data Documentation

template<typename T>
T * SingletonNoArg< T >::m_pInstance = 0 [static, private]

Definition at line 36 of file Singleton.h.


The documentation for this class was generated from the following file:
(c) 2006-2007 John P. Feltz
Generated on Wed Jul 25 16:08:02 2007 for Common Media Input Layer by doxygen 1.4.7

SourceForge.net Logo