Logo Search packages:      
Sourcecode: poco version File versions

Poco::SingletonHolder< S > Class Template Reference

#include <SingletonHolder.h>

List of all members.

Detailed Description

template<class S>
class Poco::SingletonHolder< S >

This is a helper template class for managing singleton objects allocated on the heap. The class ensures proper deletion (including calling of the destructor) of singleton objects when the application that created them terminates.

Definition at line 51 of file SingletonHolder.h.

Public Member Functions

S * get ()
 SingletonHolder ()
 Creates the SingletonHolder.
 ~SingletonHolder ()

Private Attributes

FastMutex _m
S * _pS

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

Generated by  Doxygen 1.6.0   Back to index