Function calling janitor class for function with 1 reference parameter. More...
#include <xsens_janitors.h>
Public Types | |
typedef ResultType(__cdecl * | t_func_JanitorFunc) (ParamType) |
A function prototype for a janitor function. More... | |
Public Member Functions | |
void | disable (void) |
Disables the function calling. More... | |
void | enable (void) |
Enables the function calling. More... | |
JanitorFunc1R (t_func_JanitorFunc func, ParamType &control, bool enabl=true) | |
Constructor. More... | |
~JanitorFunc1R () | |
Destructor. More... | |
Private Member Functions | |
const JanitorFunc1R & | operator= (const JanitorFunc1R &) |
Private Attributes | |
ParamType & | m_control |
bool | m_enabled |
t_func_JanitorFunc | m_funcJF |
Function calling janitor class for function with 1 reference parameter.
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 606 of file xsens_janitors.h.
typedef ResultType(__cdecl* xsens::JanitorFunc1R< ParamType, ResultType >::t_func_JanitorFunc) (ParamType) |
A function prototype for a janitor function.
Definition at line 609 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 619 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 624 of file xsens_janitors.h.
|
inline |
Disables the function calling.
Definition at line 632 of file xsens_janitors.h.
|
inline |
Enables the function calling.
Definition at line 639 of file xsens_janitors.h.
|
private |
|
private |
Definition at line 612 of file xsens_janitors.h.
|
private |
Definition at line 614 of file xsens_janitors.h.
|
private |
Definition at line 613 of file xsens_janitors.h.