Memory releasing and nulling janitor class. More...
#include <xsens_janitors.h>
Public Member Functions | |
void | disable (void) |
Disables the memory releasing and nulling. More... | |
void | enable (void) |
Enables the memory releasing and nulling. More... | |
JanitorDeleteNull (T *&control, bool enabl=true) | |
Constructor. More... | |
T * | operator-> () |
const T * | operator-> () const |
~JanitorDeleteNull () | |
Destructor. More... | |
Private Attributes | |
T *& | m_control |
bool | m_enabled |
Memory releasing and nulling janitor class.
This class can be used to make sure that the associated object is deleted when the janitor leaves scope and the referenced pointer is set to NULL.
Definition at line 265 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 274 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 283 of file xsens_janitors.h.
|
inline |
Disables the memory releasing and nulling.
Definition at line 294 of file xsens_janitors.h.
|
inline |
Enables the memory releasing and nulling.
Definition at line 301 of file xsens_janitors.h.
|
inline |
Definition at line 315 of file xsens_janitors.h.
|
inline |
Definition at line 308 of file xsens_janitors.h.
|
private |
Definition at line 268 of file xsens_janitors.h.
|
private |
Definition at line 269 of file xsens_janitors.h.