Base class for message bus subscribers. More...
#include <eagine/message_bus/subscriber.hpp>
Public Member Functions | |
| operator bool () noexcept | |
| Tests if this subscribes has an associated endpoint and is usable. | |
| auto | bus () noexcept -> auto & |
| Returns a reference to the associated endpoint. More... | |
| auto | bus () const noexcept -> auto & |
| Returns a const reference to the associated endpoint. More... | |
| auto | update () const noexcept -> bool |
| Updates the internal endpoint state (should be called repeatedly). | |
| auto | verify_bits (const stored_message &message) noexcept -> verification_bits |
| Uses the associated endpoint to verify the specified message. | |
| void | query_subscriptions_of (identifier_t target_id) |
| Queries the subscriptions of the remote endpoint with the specified id. More... | |
| void | query_subscribers_of (message_id sub_msg) |
| Queries remote nodes subscribing to the specified message. More... | |
| subscriber_base (const subscriber_base &)=delete | |
| Not copy assignable. | |
| auto | operator= (subscriber_base &&)=delete |
| Not move assignable. | |
| auto | operator= (const subscriber_base &)=delete |
| Not copy constructible. | |
Base class for message bus subscribers.
|
inlinenoexcept |
Returns a const reference to the associated endpoint.
|
inlinenoexcept |
Returns a reference to the associated endpoint.
Referenced by eagine::msgbus::service_composition< sudoku_solver<> >::add_connection(), and eagine::msgbus::service_composition< sudoku_solver<> >::service_composition().
|
inline |
Queries remote nodes subscribing to the specified message.
|
inline |
Queries the subscriptions of the remote endpoint with the specified id.