MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Types | Public Member Functions | Static Public Member Functions
mds::base::CSingletonDestroyer< T > Class Template Reference

Concrete singleton destroyer which is used to delete a singleton instance. More...

#include <mdsSingleton.h>

Inheritance diagram for mds::base::CSingletonDestroyer< T >:
Inheritance graph
[legend]

List of all members.

Public Types

typedef T * tPointer
 Pointer type.

Public Member Functions

 CSingletonDestroyer (tPointer pInstance, int iLongevity, tVoidFunction pFunction)
 Default constructor.
virtual ~CSingletonDestroyer ()
 Virtual destructor.

Static Public Member Functions

static bool compare (const CSingletonLifetime *lhs, const CSingletonLifetime *rhs)
 Compares the longevity.

Detailed Description

template<typename T>
class mds::base::CSingletonDestroyer< T >

Concrete singleton destroyer which is used to delete a singleton instance.


Member Typedef Documentation

template<typename T >
typedef T* mds::base::CSingletonDestroyer< T >::tPointer

Pointer type.


Constructor & Destructor Documentation

template<typename T >
mds::base::CSingletonDestroyer< T >::CSingletonDestroyer ( tPointer  pInstance,
int  iLongevity,
tVoidFunction  pFunction 
)

Default constructor.

template<typename T >
virtual mds::base::CSingletonDestroyer< T >::~CSingletonDestroyer ( ) [virtual]

Virtual destructor.


Member Function Documentation

static bool mds::base::CSingletonLifetime::compare ( const CSingletonLifetime lhs,
const CSingletonLifetime rhs 
) [static, inherited]

Compares the longevity.


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