Public Member Functions | Private Attributes | List of all members
xsens::JanitorFree< T > Class Template Reference

Memory releasing janitor class. More...

#include <xsens_janitors.h>

Public Member Functions

void disable (void)
 Disables the memory releasing. More...
 
void enable (void)
 Enables the memory releasing. More...
 
 JanitorFree (T *control, bool enabl=true)
 Constructor. More...
 
 ~JanitorFree ()
 Destructor. More...
 

Private Attributes

T * m_control
 
bool m_enabled
 

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 148 of file xsens_janitors.h.

Constructor & Destructor Documentation

◆ JanitorFree()

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

Constructor.

Definition at line 157 of file xsens_janitors.h.

◆ ~JanitorFree()

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

Destructor.

Definition at line 162 of file xsens_janitors.h.

Member Function Documentation

◆ disable()

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

Disables the memory releasing.

Definition at line 170 of file xsens_janitors.h.

◆ enable()

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

Enables the memory releasing.

Definition at line 177 of file xsens_janitors.h.

Member Data Documentation

◆ m_control

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

Definition at line 151 of file xsens_janitors.h.

◆ m_enabled

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

Definition at line 152 of file xsens_janitors.h.


The documentation for this class was generated from the following file:


xsens_mti_driver
Author(s):
autogenerated on Sun Sep 3 2023 02:43:23