Static Public Member Functions | Protected Member Functions | List of all members
xsens::JanitorRCDeallocationPolicy_Free< T > Class Template Reference

Reference counting janitor class. More...

#include <xsens_janitors.h>

Static Public Member Functions

static void Deallocate (T *p)
 Deallocates (frees) a pointer to an object. More...
 

Protected Member Functions

 ~JanitorRCDeallocationPolicy_Free ()
 Destructor. More...
 

Detailed Description

template<typename T>
class xsens::JanitorRCDeallocationPolicy_Free< T >

Reference counting janitor class.

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

Definition at line 979 of file xsens_janitors.h.

Constructor & Destructor Documentation

◆ ~JanitorRCDeallocationPolicy_Free()

template<typename T >
xsens::JanitorRCDeallocationPolicy_Free< T >::~JanitorRCDeallocationPolicy_Free ( )
inlineprotected

Destructor.

Note
Always use non-virtual protected destructors in policies

Definition at line 993 of file xsens_janitors.h.

Member Function Documentation

◆ Deallocate()

template<typename T >
static void xsens::JanitorRCDeallocationPolicy_Free< T >::Deallocate ( T *  p)
inlinestatic

Deallocates (frees) a pointer to an object.

Parameters
pThe pointer to an object to free

Definition at line 985 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