The use of this class is to control where an element is destroyed. More...
#include <CNoDelete.h>
Public Member Functions | |
INLINE void | activate () |
activate this. | |
INLINE void | deActivate () |
activate this. | |
INLINE | CNoDelete () |
activate this. | |
INLINE | ~CNoDelete () |
activate this. |
Protected Attributes | |
bool | mIsActivated |
is this activated |
The use of this class is to control where an element is destroyed.
If an instantiation of this class is activated, it will bomb in the moment when the destructor is called.
: Wolfgang Müller
|
inline |
activate this.
This means: destruction of *this will be possible
|
inline |
activate this.
This means: destruction of this will bomb the program using a zero assertion
|
inline |
activate this.
This means: destruction of this will bomb the program using an assertion of !mIsActivated
|
inline |
activate this.
This means: destruction of *this will bomb the program using a zero assertion