avcap::Singleton< T > Class Template Reference

#include <avcap/singleton.h>


Detailed Description

template<class T>
class avcap::Singleton< T >

Base for classes that implement the singleton pattern.

There are lots of more spohisticated approaches to implement a singleton but this simple approach is sufficient here.


Static Public Member Functions

static T & instance ()
 Get the global instance of the singleton.


Member Function Documentation

template<class T>
static T& avcap::Singleton< T >::instance (  )  [inline, static]

Get the global instance of the singleton.


The documentation for this class was generated from the following file:
Generated on Mon Nov 30 11:10:32 2009 for avcap-0.1 by  doxygen 1.5.1