_JM_NAMESPACE::Singleton< Derived > Class Template Reference

#include <basic_types.h>

List of all members.

Static Public Member Functions

static Derived & instance ()

Protected Member Functions

 Singleton ()

Private Member Functions

 Singleton (const Singleton &)
Singletonoperator= (const Singleton &)

Detailed Description

template<class Derived>
class _JM_NAMESPACE::Singleton< Derived >

Singleton idiom.

Derived class must declere this class a friend. Usage: Derived : public Singleton<Derived> { friend class Singleton<Derived>;


Constructor & Destructor Documentation

template<class Derived >
_JM_NAMESPACE::Singleton< Derived >::Singleton (  )  [inline, protected]
template<class Derived >
_JM_NAMESPACE::Singleton< Derived >::Singleton ( const Singleton< Derived > &   )  [private]

Member Function Documentation

template<class Derived >
Derived & _JM_NAMESPACE::Singleton< Derived >::instance (  )  [inline, static]
template<class Derived >
Singleton& _JM_NAMESPACE::Singleton< Derived >::operator= ( const Singleton< Derived > &   )  [private]

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