Function calling janitor class.
This class can be used to make sure that the given function is called on the
given object when the janitor leaves scope. Take care that the object is not of a type that is destroyed before the function unrolling begins.
Definition at line 179 of file xsens_janitors.h.
#include <xSens_MT3/xsens_janitors.h>
Public Types | |
| typedef R(__cdecl * | t_func_JanitorFunc) (T) |
Public Member Functions | |
| JanitorFunc (t_func_JanitorFunc func, T &control, bool enabl=true) | |
| ~JanitorFunc () | |
| void | disable (void) |
| void | enable (void) |
Private Attributes | |
| T & | m_control |
| t_func_JanitorFunc | m_funcJF |
| bool | m_enabled |
| typedef R(__cdecl* xsens::JanitorFunc< T, R >::t_func_JanitorFunc) (T) |
Definition at line 182 of file xsens_janitors.h.
|
inline |
Definition at line 187 of file xsens_janitors.h.
|
inline |
Definition at line 187 of file xsens_janitors.h.
|
inline |
Definition at line 199 of file xsens_janitors.h.
References xsens::JanitorFunc< T, R >::m_enabled.
|
inline |
Definition at line 200 of file xsens_janitors.h.
References xsens::JanitorFunc< T, R >::m_enabled.
|
private |
Definition at line 185 of file xsens_janitors.h.
|
private |
Definition at line 187 of file xsens_janitors.h.
Referenced by xsens::JanitorFunc< T, R >::disable(), and xsens::JanitorFunc< T, R >::enable().
|
private |
Definition at line 186 of file xsens_janitors.h.
| Page generated by Doxygen 1.9.1 for MRPT 1.9.9 Git: 63ea9d1f1 Thu Nov 23 00:06:53 2017 +0100 at mar 26 may 2026 12:19:29 CEST |