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 283 of file xsens_janitors.h.
#include <xSens_MT3/xsens_janitors.h>
Public Member Functions | |
JanitorSet (T &control, const T &val, bool enabl=true) | |
~JanitorSet () | |
void | disable (void) |
void | enable (void) |
Private Attributes | |
T & | m_control |
T | m_value |
bool | m_enabled |
|
inline |
Definition at line 291 of file xsens_janitors.h.
|
inline |
Definition at line 295 of file xsens_janitors.h.
References xsens::JanitorSet< T >::m_control, xsens::JanitorSet< T >::m_enabled, and xsens::JanitorSet< T >::m_value.
|
inline |
Definition at line 300 of file xsens_janitors.h.
References xsens::JanitorSet< T >::m_enabled.
|
inline |
Definition at line 301 of file xsens_janitors.h.
References xsens::JanitorSet< T >::m_enabled.
|
private |
Definition at line 286 of file xsens_janitors.h.
Referenced by xsens::JanitorSet< T >::~JanitorSet().
|
private |
Definition at line 288 of file xsens_janitors.h.
Referenced by xsens::JanitorSet< T >::disable(), xsens::JanitorSet< T >::enable(), and xsens::JanitorSet< T >::~JanitorSet().
|
private |
Definition at line 287 of file xsens_janitors.h.
Referenced by xsens::JanitorSet< T >::~JanitorSet().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |