Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

Singleton< T > Class Template Reference

#include <Singleton.h>


Public Member Functions

 Singleton ()
virtual ~Singleton ()

Static Public Member Functions

T * getInstance ()
void newInstance ()
void deleteInstance ()

Static Protected Attributes

T * instance = NULL

template<typename T>
class Singleton< T >


Constructor & Destructor Documentation

template<typename T>
Singleton< T >::Singleton  )  [inline]
 

Definition at line 26 of file Singleton.h.

template<typename T>
virtual Singleton< T >::~Singleton  )  [inline, virtual]
 

Definition at line 28 of file Singleton.h.


Member Function Documentation

template<typename T>
void Singleton< T >::deleteInstance  )  [static]
 

Definition at line 42 of file Singleton.cpp.

References Singleton< T >::instance.

template<typename T>
T * Singleton< T >::getInstance  )  [static]
 

Definition at line 23 of file Singleton.cpp.

template<typename T>
void Singleton< T >::newInstance  )  [static]
 

Definition at line 29 of file Singleton.cpp.

References Singleton< T >::instance.


Field Documentation

template<typename T>
T * Singleton< T >::instance = NULL [static, protected]
 

Definition at line 40 of file Singleton.h.

Referenced by Singleton< T >::deleteInstance(), and Singleton< T >::newInstance().


The documentation for this class was generated from the following files:
SourceForge.netLogo