iceoryx_doc
1.0.1
|
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 Member Functions | |
SampleDeleter (Port &port) | |
template<typename T > | |
void | operator() (T *const userPayload) |
Handles deletion of the sample. More... | |
template<typename T > | |
void | operator() (const T *const userPayload) const |
Handles deletion of the sample. More... | |
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.
void iox::popo::SampleDeleter< Port >::operator() | ( | const T *const | userPayload | ) | const |
Handles deletion of the sample.
[in] | userPayload | The pointer to the user-payload of the sample. |
void iox::popo::SampleDeleter< Port >::operator() | ( | T *const | userPayload | ) |
Handles deletion of the sample.
[in] | userPayload | The pointer to the user-payload of the sample. |