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 56 of file xsens_janitors.h.
#include <xSens_MT3/xsens_janitors.h>
Public Member Functions | |
| JanitorFree (T *control, bool enabl=true) | |
| ~JanitorFree () | |
| void | disable (void) |
| void | enable (void) |
Private Attributes | |
| T * | m_control |
| bool | m_enabled |
|
inline |
Definition at line 59 of file xsens_janitors.h.
|
inline |
Definition at line 59 of file xsens_janitors.h.
|
inline |
Definition at line 69 of file xsens_janitors.h.
References xsens::JanitorFree< T >::m_enabled.
|
inline |
Definition at line 72 of file xsens_janitors.h.
References xsens::JanitorFree< T >::m_enabled.
|
private |
Definition at line 58 of file xsens_janitors.h.
|
private |
Definition at line 59 of file xsens_janitors.h.
Referenced by xsens::JanitorFree< T >::disable(), and xsens::JanitorFree< T >::enable().
| Page generated by Doxygen 1.9.1 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at mar 26 may 2026 13:06:43 CEST |