RTI Connext Modern C++ API  Version 6.0.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
dds::core::cond::Condition Class Reference

<<reference-type>> Abstract base class of all the conditions More...

#include <dds/core/cond/Condition.hpp>

Inheritance diagram for dds::core::cond::Condition:
dds::core::cond::GuardCondition dds::core::cond::StatusCondition dds::sub::cond::ReadCondition dds::sub::cond::QueryCondition

Public Member Functions

void dispatch ()
 Dispatches the functors that have been registered with the condition.
 
bool trigger_value () const
 This operation retrieves the trigger_value of the Condition.
 

Detailed Description

<<reference-type>> Abstract base class of all the conditions

Note
Condition and its subclasses provide all the functions of a <<reference-type>> except close() and retain().

This basic class is specialised in three classes:

dds::core::cond::GuardCondition, dds::core::cond::StatusCondition, and dds::sub::cond::ReadCondition.

A dds::core::cond::Condition has a trigger_value that can be true or false and is set automatically by RTI Connext.

See Also
dds::core::cond::WaitSet
Waitset Use Cases

Member Function Documentation

void dds::core::cond::Condition::dispatch ( )
inline

Dispatches the functors that have been registered with the condition.

If trigger_value() is true, calling dispatch() will call the registered functor handlers.

Note: it is more common to use WaitSet::dispatch() rather than this function.

bool dds::core::cond::Condition::trigger_value ( ) const
inline

This operation retrieves the trigger_value of the Condition.


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