OpenMesh::SingletonT< T > Class Template Reference

#include <SingletonT.hh>

Collaboration diagram for OpenMesh::SingletonT< T >:

Collaboration graph
[legend]

Static Public Member Functions

static T & Instance ()

Detailed Description

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

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

Member Function Documentation

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().


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

Generated on Fri Jan 16 13:01:27 2009 by  doxygen 1.5.5