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 61 of file xsens_janitors.h.
|
inline |
Definition at line 63 of file xsens_janitors.h.
References xsens::JanitorFree< T >::m_control, and xsens::JanitorFree< T >::m_enabled.
|
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.
Referenced by xsens::JanitorFree< T >::~JanitorFree().
|
private |
Definition at line 59 of file xsens_janitors.h.
Referenced by xsens::JanitorFree< T >::disable(), xsens::JanitorFree< T >::enable(), and xsens::JanitorFree< T >::~JanitorFree().
Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020 |