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

Detailed Description

template<class T>
class xsens::JanitorFree< T >

Memory releasing janitor class.

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

Definition at line 60 of file xsens_janitors.h.

#include <xSens_MT3/xsens_janitors.h>

Public Member Functions

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

Private Attributes

T * m_control
 
bool m_enabled
 

Constructor & Destructor Documentation

◆ JanitorFree()

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

Definition at line 67 of file xsens_janitors.h.

◆ ~JanitorFree()

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

Member Function Documentation

◆ disable()

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

Definition at line 76 of file xsens_janitors.h.

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

◆ enable()

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

Definition at line 77 of file xsens_janitors.h.

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

Member Data Documentation

◆ m_control

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

Definition at line 63 of file xsens_janitors.h.

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

◆ m_enabled

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



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