MRPT  1.9.9
xsens::JanitorSet< T > Class Template Reference

Detailed Description

template<class T>
class xsens::JanitorSet< T >

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
 
m_value
 
bool m_enabled
 

Constructor & Destructor Documentation

◆ JanitorSet()

template<class T>
xsens::JanitorSet< T >::JanitorSet ( T &  control,
const T &  val,
bool  enabl = true 
)
inline

Definition at line 291 of file xsens_janitors.h.

◆ ~JanitorSet()

Member Function Documentation

◆ disable()

template<class T>
void xsens::JanitorSet< T >::disable ( void  )
inline

Definition at line 300 of file xsens_janitors.h.

References xsens::JanitorSet< T >::m_enabled.

◆ enable()

template<class T>
void xsens::JanitorSet< T >::enable ( void  )
inline

Definition at line 301 of file xsens_janitors.h.

References xsens::JanitorSet< T >::m_enabled.

Member Data Documentation

◆ m_control

template<class T>
T& xsens::JanitorSet< T >::m_control
private

Definition at line 286 of file xsens_janitors.h.

Referenced by xsens::JanitorSet< T >::~JanitorSet().

◆ m_enabled

template<class T>
bool xsens::JanitorSet< T >::m_enabled
private

◆ m_value

template<class T>
T xsens::JanitorSet< T >::m_value
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: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020