|
iceoryx2
C++ Bindings
|
The receiving endpoint of a publish-subscribe communication. More...
#include <subscriber.hpp>
Public Member Functions | |
| Subscriber (Subscriber &&rhs) noexcept | |
| auto | operator= (Subscriber &&rhs) noexcept -> Subscriber & |
| ~Subscriber () | |
| Subscriber (const Subscriber &)=delete | |
| auto | operator= (const Subscriber &) -> Subscriber &=delete |
| auto | id () const -> UniqueSubscriberId |
| Returns the [UniqueSubscriberId] of the [Subscriber]. | |
| auto | name () const -> PortNameView |
| Returns the [PortNameView] of the [Subscriber]. | |
| auto | buffer_size () const -> uint64_t |
| Returns the internal buffer size of the [Subscriber]. | |
| auto | receive () const -> bb::Expected< bb::Optional< Sample< S, Payload, UserHeader > >, ReceiveError > |
| auto | has_samples () const -> bb::Expected< bool, ConnectionFailure > |
Friends | |
| template<ServiceType, typename, typename> | |
| class | PortFactorySubscriber |
The receiving endpoint of a publish-subscribe communication.
Definition at line 30 of file subscriber.hpp.
|
inlinenoexcept |
Definition at line 71 of file subscriber.hpp.
References Subscriber().
Referenced by operator=(), operator=(), PortFactorySubscriber, Subscriber(), and Subscriber().
|
inline |
Definition at line 87 of file subscriber.hpp.
|
delete |
References Subscriber().
|
inline |
Returns the internal buffer size of the [Subscriber].
Definition at line 126 of file subscriber.hpp.
Referenced by operator=().
|
inline |
Returns true when the [Subscriber] has [Sample]s that can be acquired via [Subscriber::receive()], otherwise false.
Definition at line 100 of file subscriber.hpp.
References iox2::bb::err(), and iox2::bb::into().
Referenced by operator=().
|
inline |
Returns the [UniqueSubscriberId] of the [Subscriber].
Definition at line 112 of file subscriber.hpp.
|
inline |
Returns the [PortNameView] of the [Subscriber].
Definition at line 120 of file subscriber.hpp.
References iox2::PortNameView::from_native_ptr().
Referenced by operator=().
|
delete |
References buffer_size(), has_samples(), name(), receive(), and Subscriber().
|
inlinenoexcept |
Definition at line 76 of file subscriber.hpp.
References Subscriber().
|
inline |
Receives a [Sample] from [Publisher]. If no sample could be received [None] is returned. If a failure occurs [ReceiveError] is returned.
Definition at line 131 of file subscriber.hpp.
References iox2::bb::err(), iox2::bb::into(), and iox2::bb::NULLOPT.
Referenced by operator=().
|
friend |
Definition at line 58 of file subscriber.hpp.
References PortFactorySubscriber, and Subscriber().
Referenced by PortFactorySubscriber.