13#include <rpp/subscriptions/details/subscription_state.hpp>
19class composite_subscription;
28 : m_state{std::move(state)} {}
30 const std::shared_ptr<details::subscription_state>& get_state()
const {
return m_state; }
35 : m_state{std::make_shared<details::subscription_state>()} {}
53 return m_state && m_state->is_subscribed();
63 m_state->unsubscribe();
69 mutable std::shared_ptr<details::subscription_state> m_state{};
rpp::subscription_base with ability to add some dependent subscriptions as a part of this one: in cas...
Definition: composite_subscription.hpp:30
Base subscription implementation used as base class/interface and core implementation for derrived su...
Definition: subscription_base.hpp:25
bool is_subscribed() const
indicates current status of subscription
Definition: subscription_base.hpp:51
void unsubscribe() const
initiates unsubscription process (if subscribed)
Definition: subscription_base.hpp:59