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 28 of file xsens_janitors.h.
#include <xSens_MT3/xsens_janitors.h>
Public Member Functions | |
JanitorRestore (T &control, bool enabl=true) | |
~JanitorRestore () | |
void | disable (void) |
void | enable (void) |
Private Attributes | |
T & | m_control |
T | m_value |
bool | m_enabled |
|
inline |
Definition at line 34 of file xsens_janitors.h.
|
inline |
Definition at line 36 of file xsens_janitors.h.
References xsens::JanitorRestore< T >::m_control, xsens::JanitorRestore< T >::m_enabled, and xsens::JanitorRestore< T >::m_value.
|
inline |
Definition at line 42 of file xsens_janitors.h.
References xsens::JanitorRestore< T >::m_enabled.
|
inline |
Definition at line 45 of file xsens_janitors.h.
References xsens::JanitorRestore< T >::m_enabled.
|
private |
Definition at line 30 of file xsens_janitors.h.
Referenced by xsens::JanitorRestore< T >::~JanitorRestore().
|
private |
Definition at line 32 of file xsens_janitors.h.
Referenced by xsens::JanitorRestore< T >::disable(), xsens::JanitorRestore< T >::enable(), and xsens::JanitorRestore< T >::~JanitorRestore().
|
private |
Definition at line 31 of file xsens_janitors.h.
Referenced by xsens::JanitorRestore< T >::~JanitorRestore().
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 |