OpenMesh::SingletonT< T > Class Template Reference

#include <SingletonT.hh>

List of all members.

Static Public Member Functions

static T & Instance ()

Private Member Functions

SingletonToperator= (const SingletonT &)
 SingletonT (const SingletonT &)
 SingletonT ()
virtual ~SingletonT ()

Static Private Member Functions

static void Create ()
static void OnDeadReference ()

Static Private Attributes

static bool destroyed__ = false
static T * pInstance__ = 0

Detailed Description

template<typename T>
class OpenMesh::SingletonT< T >

A simple singleton template. Encapsulates an arbitrary class and enforces its uniqueness.

Definition at line 78 of file SingletonT.hh.


Constructor & Destructor Documentation

template<typename T >
OpenMesh::SingletonT< T >::SingletonT (  )  [private]
template<typename T >
OpenMesh::SingletonT< T >::SingletonT ( const SingletonT< T > &   )  [private]
template<typename T >
virtual OpenMesh::SingletonT< T >::~SingletonT (  )  [inline, private, virtual]

Definition at line 127 of file SingletonT.hh.


Member Function Documentation

template<typename T >
static void OpenMesh::SingletonT< T >::Create (  )  [inline, static, private]

Definition at line 115 of file SingletonT.hh.

template<typename T >
static T& OpenMesh::SingletonT< T >::Instance (  )  [inline, static]

Singleton access function. Use this function to obtain a reference to the instance of the encapsulated class. Note that this instance is unique and created on the first call to Instance().

Definition at line 88 of file SingletonT.hh.

template<typename T >
static void OpenMesh::SingletonT< T >::OnDeadReference (  )  [inline, static, private]

Definition at line 122 of file SingletonT.hh.

template<typename T >
SingletonT& OpenMesh::SingletonT< T >::operator= ( const SingletonT< T > &   )  [private]

Member Data Documentation

template<typename T >
bool OpenMesh::SingletonT< T >::destroyed__ = false [inline, static, private]

Definition at line 134 of file SingletonT.hh.

template<typename T >
T * OpenMesh::SingletonT< T >::pInstance__ = 0 [inline, static, private]

Definition at line 133 of file SingletonT.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:16 2013