Class Index Cross Index Namespace Index

template Class General::Singleton< class T >

Template to ensure a single instance of a class.
Contained in: General
Derived from: none
Derived by: none

#include "general/SingletonT.hh"


public function member index:

static T& Instance(); Obtain reference to the only instance of the class.
static T* PInstance(); Obtain pointer to the only instance of the class.
 

private function member index:

Singleton(); Hide default constructor
~Singleton(); Hide default destructor
const Singleton& operator =(const Singleton& Source); Hide copy constructor
 

Description:



Function Member Descriptions:


General::Singleton::Singleton - Hide default constructor


Singleton();



General::Singleton::~Singleton - Hide default destructor


~Singleton();



General::Singleton::Instance - Obtain reference to the only instance of the class.


static T& Instance();



General::Singleton::PInstance - Obtain pointer to the only instance of the class.


static T* PInstance();



General::Singleton::operator = - Hide copy constructor


const Singleton& operator =(const Singleton& Source);