Memory releasing janitor class. More...
#include <xsens_janitors.h>
Public Member Functions | |
| void | disable (void) |
| Disables the memory releasing. More... | |
| void | enable (void) |
| Enables the memory releasing. More... | |
| JanitorDeleteArray (T *control, bool enabl=true) | |
| Constructor. More... | |
| ~JanitorDeleteArray () | |
| Destructor. More... | |
Private Attributes | |
| T * | m_control |
| bool | m_enabled |
Memory releasing janitor class.
This class can be used to make sure that the associated object is deleted when the janitor leaves scope.
Definition at line 327 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 336 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 341 of file xsens_janitors.h.
|
inline |
Disables the memory releasing.
Definition at line 349 of file xsens_janitors.h.
|
inline |
Enables the memory releasing.
Definition at line 356 of file xsens_janitors.h.
|
private |
Definition at line 330 of file xsens_janitors.h.
|
private |
Definition at line 331 of file xsens_janitors.h.