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

Detailed Description

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

Function calling janitor class.

This class can be used to make sure that the given function is called on the given object when the janitor leaves scope. Take care that the object is not of a type that is destroyed before the function unrolling begins.

Definition at line 236 of file xsens_janitors.h.

#include <xSens_MT3/xsens_janitors.h>

Public Types

typedef R(__stdcall * t_func_JanitorFuncStdCall) (T)
 

Public Member Functions

 JanitorFuncStdCall (t_func_JanitorFuncStdCall func, T &control, bool enabl=true)
 
 ~JanitorFuncStdCall ()
 
void disable (void)
 
void enable (void)
 

Private Attributes

T & m_control
 
t_func_JanitorFuncStdCall m_funcJFSC
 
bool m_enabled
 

Member Typedef Documentation

◆ t_func_JanitorFuncStdCall

template<class T, typename R = void>
typedef R(__stdcall * xsens::JanitorFuncStdCall< T, R >::t_func_JanitorFuncStdCall) (T)

Definition at line 238 of file xsens_janitors.h.

Constructor & Destructor Documentation

◆ JanitorFuncStdCall()

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

Definition at line 245 of file xsens_janitors.h.

◆ ~JanitorFuncStdCall()

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

Member Function Documentation

◆ disable()

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

Definition at line 253 of file xsens_janitors.h.

References xsens::JanitorFuncStdCall< T, R >::m_enabled.

◆ enable()

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

Definition at line 256 of file xsens_janitors.h.

References xsens::JanitorFuncStdCall< T, R >::m_enabled.

Member Data Documentation

◆ m_control

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

◆ m_enabled

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

◆ m_funcJFSC

template<class T, typename R = void>
t_func_JanitorFuncStdCall xsens::JanitorFuncStdCall< T, R >::m_funcJFSC
private

Definition at line 241 of file xsens_janitors.h.




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