Destroyer< DOOMED > Class Template Reference

Template Class Destroyer. More...

#include <Destroyer.h>

List of all members.

Public Member Functions

 Destroyer (DOOMED *=0)
 ~Destroyer ()
void SetDoomed (DOOMED *)

Private Member Functions

 Destroyer (const Destroyer< DOOMED > &)
void operator= (const Destroyer< DOOMED > &)

Private Attributes

DOOMED * _doomed
 the singleton that is "attached" to the destroyer

Detailed Description

template<class DOOMED>
class Destroyer< DOOMED >

Template Class Destroyer.

Ensure that a singleton is properly cleaned after deletion. See discussion : http://www.research.ibm.com/designpatterns/pubs/ph-jun96.txt


Constructor & Destructor Documentation

template<class DOOMED>
Destroyer< DOOMED >::Destroyer ( DOOMED *  s = 0  )  [inline]
template<class DOOMED >
Destroyer< DOOMED >::~Destroyer (  )  [inline]
template<class DOOMED>
Destroyer< DOOMED >::Destroyer ( const Destroyer< DOOMED > &   )  [private]

Member Function Documentation

template<class DOOMED>
void Destroyer< DOOMED >::operator= ( const Destroyer< DOOMED > &   )  [private]
template<class DOOMED>
void Destroyer< DOOMED >::SetDoomed ( DOOMED *  s  )  [inline]

Member Data Documentation

template<class DOOMED>
DOOMED* Destroyer< DOOMED >::_doomed [private]

the singleton that is "attached" to the destroyer


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

Generated on 4 Mar 2010 for TReqS by  doxygen 1.6.1