21 #ifndef OSPL_DDS_CORE_COND_TGUARDCONDITION_IMPL_HPP_ 22 #define OSPL_DDS_CORE_COND_TGUARDCONDITION_IMPL_HPP_ 32 #include <org/opensplice/core/cond/GuardConditionDelegate.hpp> 33 #include <org/opensplice/core/ReportUtils.hpp> 46 ISOCPP_REPORT_STACK_NC_BEGIN();
47 this->set_ref(
new DELEGATE);
48 this->delegate()->init(this->impl_);
55 template <
typename FUN>
58 ISOCPP_REPORT_STACK_NC_BEGIN();
59 this->set_ref(
new DELEGATE);
60 this->delegate()->init(this->impl_);
61 this->delegate()->set_handler(functor);
65 template <
typename FUN>
68 ISOCPP_REPORT_STACK_NC_BEGIN();
69 this->set_ref(
new DELEGATE);
70 this->delegate()->init(this->impl_);
71 this->delegate()->set_handler(functor);
76 GuardCondition::~GuardCondition()
83 ISOCPP_REPORT_STACK_NC_BEGIN();
84 this->delegate()->trigger_value(value);
96 ISOCPP_REPORT_STACK_NC_BEGIN();
100 *
this = dds::core::null;
102 this->::dds::core::Reference::impl_ = OSPL_CXX11_STD_MODULE::dynamic_pointer_cast<DELEGATE_T>(h.delegate());
103 if (h.delegate() != this->::dds::core::Reference::impl_) {
113 ISOCPP_REPORT_STACK_NC_BEGIN();
118 *
this = dds::core::null;
122 if (other.delegate() != this->::dds::core::Reference::impl_) {
Exception: An operation was invoked on an inappropriate object or at an inappropriate time...
void value(DDT &dd, uint32_t mid, const T &v)
bool trigger_value() const
Reference & operator=(const Reference< D > &that)
A GuardCondition object is a specific Condition whose trigger_value is completely under the control o...
This class is the base class for all the conditions that may be attached to a dds::core::cond::WaitSe...