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 236 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 238 of file xsens_janitors.h.
|
inline |
Definition at line 245 of file xsens_janitors.h.
|
inline |
Definition at line 247 of file xsens_janitors.h.
References xsens::JanitorFuncStdCall< T, R >::m_control, and xsens::JanitorFuncStdCall< T, R >::m_enabled.
|
inline |
Definition at line 253 of file xsens_janitors.h.
References xsens::JanitorFuncStdCall< T, R >::m_enabled.
|
inline |
Definition at line 256 of file xsens_janitors.h.
References xsens::JanitorFuncStdCall< T, R >::m_enabled.
|
private |
Definition at line 240 of file xsens_janitors.h.
Referenced by xsens::JanitorFuncStdCall< T, R >::~JanitorFuncStdCall().
|
private |
Definition at line 242 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 241 of file xsens_janitors.h.
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 |