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 250 of file xsens_janitors.h.
#include <xSens_MT3/xsens_janitors.h>
Public Types | |
typedef R(__stdcall * | t_func_JanitorFuncStdCall) (T) |
Public Member Functions | |
JanitorFuncStdCall (t_func_JanitorFuncStdCall func, T &control, bool enabl=true) | |
~JanitorFuncStdCall () | |
void | disable (void) |
void | enable (void) |
Private Attributes | |
T & | m_control |
t_func_JanitorFuncStdCall | m_funcJFSC |
bool | m_enabled |
typedef R(__stdcall* xsens::JanitorFuncStdCall< T, R >::t_func_JanitorFuncStdCall) (T) |
Definition at line 253 of file xsens_janitors.h.
|
inline |
Definition at line 261 of file xsens_janitors.h.
|
inline |
Definition at line 266 of file xsens_janitors.h.
References xsens::JanitorFuncStdCall< T, R >::m_control, and xsens::JanitorFuncStdCall< T, R >::m_enabled.
|
inline |
Definition at line 271 of file xsens_janitors.h.
References xsens::JanitorFuncStdCall< T, R >::m_enabled.
|
inline |
Definition at line 272 of file xsens_janitors.h.
References xsens::JanitorFuncStdCall< T, R >::m_enabled.
|
private |
Definition at line 256 of file xsens_janitors.h.
Referenced by xsens::JanitorFuncStdCall< T, R >::~JanitorFuncStdCall().
|
private |
Definition at line 258 of file xsens_janitors.h.
Referenced by xsens::JanitorFuncStdCall< T, R >::disable(), xsens::JanitorFuncStdCall< T, R >::enable(), and xsens::JanitorFuncStdCall< T, R >::~JanitorFuncStdCall().
|
private |
Definition at line 257 of file xsens_janitors.h.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |