Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Private Attributes
xsens::JanitorClassFunc< T, R > Class Template Reference

Detailed Description

template<class T, typename R = void>
class xsens::JanitorClassFunc< T, R >

Class function calling janitor class.

This class can be used to make sure that the given class function is called when the janitor leaves scope.

Definition at line 144 of file xsens_janitors.h.

#include <xSens_MT3/xsens_janitors.h>

Inheritance diagram for xsens::JanitorClassFunc< T, R >:
Inheritance graph

Public Types

typedef R(T::* t_func_JanitorClasssFunc) (void)
 

Public Member Functions

 JanitorClassFunc (T &control, t_func_JanitorClasssFunc func, bool enabl=true)
 
 ~JanitorClassFunc ()
 
void disable (void)
 
void enable (void)
 

Private Attributes

T & m_control
 
t_func_JanitorClasssFunc m_funcJCF
 
bool m_enabled
 

Member Typedef Documentation

◆ t_func_JanitorClasssFunc

template<class T, typename R = void>
typedef R(T::* xsens::JanitorClassFunc< T, R >::t_func_JanitorClasssFunc) (void)

Definition at line 147 of file xsens_janitors.h.

Constructor & Destructor Documentation

◆ JanitorClassFunc()

template<class T, typename R = void>
xsens::JanitorClassFunc< T, R >::JanitorClassFunc ( T &  control,
t_func_JanitorClasssFunc  func,
bool  enabl = true 
)
inline

Definition at line 155 of file xsens_janitors.h.

◆ ~JanitorClassFunc()

template<class T, typename R = void>
xsens::JanitorClassFunc< T, R >::~JanitorClassFunc ( )
inline

Definition at line 160 of file xsens_janitors.h.

Member Function Documentation

◆ disable()

template<class T, typename R = void>
void xsens::JanitorClassFunc< T, R >::disable ( void  )
inline

Definition at line 165 of file xsens_janitors.h.

◆ enable()

template<class T, typename R = void>
void xsens::JanitorClassFunc< T, R >::enable ( void  )
inline

Definition at line 166 of file xsens_janitors.h.

Member Data Documentation

◆ m_control

template<class T, typename R = void>
T& xsens::JanitorClassFunc< T, R >::m_control
private

◆ m_enabled

template<class T, typename R = void>
bool xsens::JanitorClassFunc< T, R >::m_enabled
private

◆ m_funcJCF

template<class T, typename R = void>
t_func_JanitorClasssFunc xsens::JanitorClassFunc< T, R >::m_funcJCF
private



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019