RTI Connext Modern C++ API  Version 6.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rti::request::IsReplyRelatedPredicate< T > Class Template Reference

Functor to match replies by their related request. More...

#include <util.hpp>

Public Member Functions

 IsReplyRelatedPredicate (const rti::core::SampleIdentity &related_request_id)
 Creates the predicate with the request id to match.
 
bool operator() (dds::sub::Sample< T > sample)
 Determines if a reply is related to the request id this object contains.
 
bool operator() (rti::sub::LoanedSample< T > sample)
 Determines if a reply is related to the request id this object contains.
 
bool operator() (dds::sub::SampleInfo sample_info)
 Determines if a reply info is related to the request id this object contains.
 

Detailed Description

template<typename T>
class rti::request::IsReplyRelatedPredicate< T >

Functor to match replies by their related request.

Useful for C++ standard algorithms like std::find_if()

See Also
Correlating requests and replies

Constructor & Destructor Documentation

template<typename T >
rti::request::IsReplyRelatedPredicate< T >::IsReplyRelatedPredicate ( const rti::core::SampleIdentity related_request_id)
inline

Creates the predicate with the request id to match.

Member Function Documentation

template<typename T >
bool rti::request::IsReplyRelatedPredicate< T >::operator() ( dds::sub::Sample< T >  sample)
inline

Determines if a reply is related to the request id this object contains.

template<typename T >
bool rti::request::IsReplyRelatedPredicate< T >::operator() ( rti::sub::LoanedSample< T >  sample)
inline

Determines if a reply is related to the request id this object contains.

template<typename T >
bool rti::request::IsReplyRelatedPredicate< T >::operator() ( dds::sub::SampleInfo  sample_info)
inline

Determines if a reply info is related to the request id this object contains.


RTI Connext Modern C++ API Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc