Template Class Destroyer. More...
#include <Destroyer.h>
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 |
Template Class Destroyer.
Ensure that a singleton is properly cleaned after deletion. See discussion : http://www.research.ibm.com/designpatterns/pubs/ph-jun96.txt
void Destroyer< DOOMED >::operator= | ( | const Destroyer< DOOMED > & | ) | [private] |
void Destroyer< DOOMED >::SetDoomed | ( | DOOMED * | s | ) | [inline] |
the singleton that is "attached" to the destroyer