RTI Connext C++ API  Version 5.1.0
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.
 
bool operator() (SampleRef< T > sample)
 Determines if a reply is related to the request id this object contains.
 

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

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

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.


RTI Connext C++ API Version 5.1.0 Copyright © Mon Feb 3 2014 Real-Time Innovations, Inc