SingletonTemplate< classType > Class Template Reference

#include <singleton_template.hpp>

Collaboration diagram for SingletonTemplate< classType >:

Static Public Member Functions

static classType & getInstance ()
 Public member to get instance of this SINGLETON class. More...
 

Protected Member Functions

 SingletonTemplate ()
 

Static Protected Attributes

static SingletonTemplatempSingletonInstance = 0
 

Detailed Description

template<typename classType>
class SingletonTemplate< classType >

This Singleton template can be inherited and the parent class can make its constructor private with this class as a friend to inherit this Singleton pattern.

Constructor & Destructor Documentation

template<typename classType>
SingletonTemplate< classType >::SingletonTemplate ( )
inlineprotected

Protected Constructor for this Singleton Class so only the class inheriting this template class can make this part of itself

Member Function Documentation

template<typename classType >
classType & SingletonTemplate< classType >::getInstance ( )
static

Public member to get instance of this SINGLETON class.

Field Documentation

template<typename classType>
SingletonTemplate< classType > * SingletonTemplate< classType >::mpSingletonInstance = 0
staticprotected

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