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

Detailed Description

template<class T>
class xsens::JanitorDeleteArray< 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 116 of file xsens_janitors.h.

#include <xSens_MT3/xsens_janitors.h>

Public Member Functions

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

Private Attributes

T * m_control
 
bool m_enabled
 

Constructor & Destructor Documentation

◆ JanitorDeleteArray()

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

Definition at line 123 of file xsens_janitors.h.

◆ ~JanitorDeleteArray()

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

Member Function Documentation

◆ disable()

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

Definition at line 132 of file xsens_janitors.h.

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

◆ enable()

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

Definition at line 133 of file xsens_janitors.h.

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

Member Data Documentation

◆ m_control

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

◆ m_enabled

template<class T>
bool xsens::JanitorDeleteArray< T >::m_enabled
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