common::Singleton< T > Class Template Reference
[Ogólne]

Wzorzec projektowy Singleton - klasa bazowa. More...

#include <Base.hpp>

List of all members.

Static Public Member Functions

static T & GetInstance ()
 Pobiera jedyną instancję tej klasy. Tworzy ją przy pierwszym pobraniu.

Detailed Description

template<typename T>
class common::Singleton< T >

Wzorzec projektowy Singleton - klasa bazowa.

Sposób użycia:

class MyClass : public common::Singleton<MyClass>
{
public:
  void Foo();
};

...
MyClass::GetInstance().Foo();

Member Function Documentation

template<typename T >
static T& common::Singleton< T >::GetInstance (  )  [inline, static]

Pobiera jedyną instancję tej klasy. Tworzy ją przy pierwszym pobraniu.


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

Generated on Wed Dec 16 20:44:54 2009 for CommonLib by  doxygen 1.6.1