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

Detailed Description

template<class T>
class xsens::JanitorDelete< T >

Memory releasing janitor class.

This class can be used to make sure that the associated object is deleted when the janitor leaves scope.

Definition at line 88 of file xsens_janitors.h.

#include <xSens_MT3/xsens_janitors.h>

Public Member Functions

 JanitorDelete (T *control, bool enabl=true)
 
 ~JanitorDelete ()
 
void disable (void)
 
void enable (void)
 

Private Attributes

T * m_control
 
bool m_enabled
 

Constructor & Destructor Documentation

◆ JanitorDelete()

template<class T>
xsens::JanitorDelete< T >::JanitorDelete ( T *  control,
bool  enabl = true 
)
inline

Definition at line 95 of file xsens_janitors.h.

◆ ~JanitorDelete()

template<class T>
xsens::JanitorDelete< T >::~JanitorDelete ( )
inline

Member Function Documentation

◆ disable()

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

Definition at line 104 of file xsens_janitors.h.

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

◆ enable()

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

Definition at line 105 of file xsens_janitors.h.

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

Member Data Documentation

◆ m_control

template<class T>
T* xsens::JanitorDelete< T >::m_control
private

Definition at line 91 of file xsens_janitors.h.

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

◆ m_enabled

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



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