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... | |
JanitorDelete () | |
Default constructor. More... | |
JanitorDelete (T *control, bool enabl=true) | |
Constructor. More... | |
T * | operator-> () |
const T * | operator-> () const |
void | setControl (T *control) |
Sets the control object. More... | |
~JanitorDelete () | |
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 189 of file xsens_janitors.h.
|
inline |
Default constructor.
Definition at line 198 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 207 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 216 of file xsens_janitors.h.
|
inline |
Disables the memory releasing.
Definition at line 232 of file xsens_janitors.h.
|
inline |
Enables the memory releasing.
Definition at line 239 of file xsens_janitors.h.
|
inline |
Definition at line 253 of file xsens_janitors.h.
|
inline |
Definition at line 246 of file xsens_janitors.h.
|
inline |
Sets the control object.
control | The control object |
Definition at line 225 of file xsens_janitors.h.
|
private |
Definition at line 192 of file xsens_janitors.h.
|
private |
Definition at line 193 of file xsens_janitors.h.