RTI Connext Traditional C++ API  Version 6.1.1
connext::IsReplyRelatedPredicate< T > Class Template Reference

Predicate-class to match replies by their related request. More...

Public Member Functions

 IsReplyRelatedPredicate (const DDS::SampleIdentity_t &related_request_id)
 Creates the predicate with the request id to match. More...
 
bool operator() (SampleRef< T > sample)
 Determines if a reply is related to the request id this object contains. More...
 

Detailed Description

template<typename T>
class connext::IsReplyRelatedPredicate< T >

Predicate-class 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

◆ IsReplyRelatedPredicate()

template<typename T>
connext::IsReplyRelatedPredicate< T >::IsReplyRelatedPredicate ( const DDS::SampleIdentity_t related_request_id)
inline

Creates the predicate with the request id to match.

Member Function Documentation

◆ operator()()

template<typename T>
bool connext::IsReplyRelatedPredicate< T >::operator() ( SampleRef< T >  sample)
inline

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

References connext::SampleRef< T >::related_identity().