Skip to content

iox::popo::SampleDeleter🔗

The SampleDeleter struct is a custom deleter in functor form which releases loans to a sample's underlying memory chunk via the corresponding port.. Each port should create its own instance of this deleter struct. More...

#include <sample_deleter.hpp>

Public Functions🔗

Name
SampleDeleter(Port & port)
template \<typename T >
void
operator()(T *const userPayload)
Handles deletion of the sample.
template \<typename T >
void
operator()(const T *const userPayload) const
Handles deletion of the sample.

Detailed Description🔗

template <typename Port >
struct iox::popo::SampleDeleter;

The SampleDeleter struct is a custom deleter in functor form which releases loans to a sample's underlying memory chunk via the corresponding port.. Each port should create its own instance of this deleter struct.

Public Functions Documentation🔗

function SampleDeleter🔗

SampleDeleter(
    Port & port
)

function operator()🔗

template <typename T >
void operator()(
    T *const userPayload
)

Handles deletion of the sample.

Parameters:

  • userPayload The pointer to the user-payload of the sample.

function operator()🔗

template <typename T >
void operator()(
    const T *const userPayload
) const

Handles deletion of the sample.

Parameters:

  • userPayload The pointer to the user-payload of the sample.

Updated on 31 May 2022 at 15:29:16 CEST