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... | |
JanitorFree (T *control, bool enabl=true) | |
Constructor. More... | |
~JanitorFree () | |
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 pointer is freed when the janitor leaves scope.
Definition at line 148 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 157 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 162 of file xsens_janitors.h.
|
inline |
Disables the memory releasing.
Definition at line 170 of file xsens_janitors.h.
|
inline |
Enables the memory releasing.
Definition at line 177 of file xsens_janitors.h.
|
private |
Definition at line 151 of file xsens_janitors.h.
|
private |
Definition at line 152 of file xsens_janitors.h.