Class function calling janitor class. More...
#include <xsens_janitors.h>
Public Types | |
typedef R(T::* | t_func_JanitorClassFunc) (void) |
A function prototype for a janitor class. More... | |
Public Member Functions | |
void | disable (void) |
Disables the function calling. More... | |
void | enable (void) |
Enables the function calling. More... | |
JanitorClassFunc (T &control, t_func_JanitorClassFunc func, bool enabl=true) | |
Constructor. More... | |
~JanitorClassFunc () | |
Destructor. More... | |
Private Member Functions | |
const JanitorClassFunc & | operator= (const JanitorClassFunc &) |
Private Attributes | |
T & | m_control |
bool | m_enabled |
t_func_JanitorClassFunc | m_funcJCF |
Class function calling janitor class.
This class can be used to make sure that the given class function is called when the janitor leaves scope.
Definition at line 369 of file xsens_janitors.h.
typedef R(T::* xsens::JanitorClassFunc< T, R >::t_func_JanitorClassFunc) (void) |
A function prototype for a janitor class.
Definition at line 372 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 383 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 390 of file xsens_janitors.h.
|
inline |
Disables the function calling.
Definition at line 398 of file xsens_janitors.h.
|
inline |
Enables the function calling.
Definition at line 405 of file xsens_janitors.h.
|
private |
|
private |
Definition at line 376 of file xsens_janitors.h.
|
private |
Definition at line 378 of file xsens_janitors.h.
|
private |
Definition at line 377 of file xsens_janitors.h.