RTI Connext Modern C++ API  Version 7.0.0
rti::topic::CustomFilter< T > Class Template Reference

<<extension>> <<reference-type>> A wrapper class for the user-defined implementation of a ContentFilter. More...

#include <rti/topic/CustomFilter.hpp>

Inheritance diagram for rti::topic::CustomFilter< T >:
dds::core::Reference< T >

Public Member Functions

 CustomFilter (typename dds::core::smart_ptr_traits< T >::ref_type content_filter_ref)
 Create a CustomFilter which holds a shared pointer to a user-defined content filter. More...
 
const T * get () const
 Get a const pointer to the underlying content filter. More...
 
T * get ()
 Get a pointer to the underlying content filter. More...
 

Detailed Description

template<typename T>
class rti::topic::CustomFilter< T >

<<extension>> <<reference-type>> A wrapper class for the user-defined implementation of a ContentFilter.

In order to register a custom content filter a user must:

The CustomFilter class prevents your content filter from being deleted while RTI Connext is using your filter by retaining a reference to your filter until it is no longer being used by RTI Connext.

For an example of how to create anad register a custom content filter see Creating Custom Content Filters.

Template Parameters
TThe type of the custom content filter that is being registered. It must be a type which inherits and implements the interface of one of ContentFilter, WriterContentFilter, or WriterContentFilterHelper

Constructor & Destructor Documentation

◆ CustomFilter()

template<typename T>
rti::topic::CustomFilter< T >::CustomFilter ( typename dds::core::smart_ptr_traits< T >::ref_type  content_filter_ref)
inline

Create a CustomFilter which holds a shared pointer to a user-defined content filter.

Parameters
content_filter_refA shared pointer to a user-defined content filter object.

Member Function Documentation

◆ get() [1/2]

template<typename T>
const T* rti::topic::CustomFilter< T >::get ( ) const
inline

Get a const pointer to the underlying content filter.

◆ get() [2/2]

template<typename T>
T* rti::topic::CustomFilter< T >::get ( )
inline

Get a pointer to the underlying content filter.