Value restoring janitor class. More...
#include <xsens_janitors.h>
Public Member Functions | |
void | disable (void) |
Disables the value restoring. More... | |
void | enable (void) |
Enables the value restoring. More... | |
JanitorSet (T &control, const T &val, bool enabl=true) | |
Constructor. More... | |
~JanitorSet () | |
Destructor. More... | |
Private Member Functions | |
const JanitorSet & | operator= (const JanitorSet &) |
Private Attributes | |
T & | m_control |
bool | m_enabled |
T | m_value |
Value restoring janitor class.
This class can be used to make sure that the value that is in the variable at the time the janitor is created will be in it again when the janitor leaves scope.
Definition at line 913 of file xsens_janitors.h.
|
inline |
Constructor.
Definition at line 924 of file xsens_janitors.h.
|
inline |
Destructor.
Definition at line 929 of file xsens_janitors.h.
|
inline |
Disables the value restoring.
Definition at line 937 of file xsens_janitors.h.
|
inline |
Enables the value restoring.
Definition at line 944 of file xsens_janitors.h.
|
private |
|
private |
Definition at line 917 of file xsens_janitors.h.
|
private |
Definition at line 919 of file xsens_janitors.h.
|
private |
Definition at line 918 of file xsens_janitors.h.