SingletonDestroyer< DOOMED > Class Template Reference
A templated singleton class destroyer. More...
#include <doomed.h>
Inheritance diagram for SingletonDestroyer< DOOMED >:
Public Member Functions | |
SingletonDestroyer (DOOMED *=0) | |
Ctor to save the singleton pointer. | |
~SingletonDestroyer () | |
Cleanup of singleton pointer. | |
void | setDoomed (DOOMED *) |
Set the pointer to the singleton. | |
DOOMED * | getDoomed () |
return the pointer to the singleton. | |
Private Member Functions | |
SingletonDestroyer (const SingletonDestroyer &) | |
Users can not copy one. | |
SingletonDestroyer & | operator= (const SingletonDestroyer &) |
Users can not assign one. | |
Private Attributes | |
DOOMED * | mp_doomed |
the pointer to the singleton. |
Detailed Description
template<class DOOMED>
class SingletonDestroyer< DOOMED >
A templated singleton class destroyer.
- Description
- This class is used by singleton to destroy the static data that holds the singleton. This is from Pattern Hatching p 66.
The documentation for this class was generated from the following file: