Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OpenMesh::SingletonT< T > Class Template Reference

A simple singleton template. More...

#include <SingletonT.hh>

List of all members.

Static Public Methods

T & Instance ()
 Singleton access function.


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>
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:
acg pic Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .