|
iceoryx2
C++ Language 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 | 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 29 of file subscriber.hpp.
|
inlinenoexcept |
Definition at line 67 of file subscriber.hpp.
|
inline |
Definition at line 83 of file subscriber.hpp.
|
delete |
|
inline |
Returns the internal buffer size of the [Subscriber].
Definition at line 116 of file subscriber.hpp.
|
inline |
Returns true when the [Subscriber] has [Sample]s that can be acquired via [Subscriber::receive()], otherwise false.
Definition at line 96 of file subscriber.hpp.
References iox2::bb::err().
|
inline |
Returns the [UniqueSubscriberId] of the [Subscriber].
Definition at line 108 of file subscriber.hpp.
|
delete |
|
inlinenoexcept |
Definition at line 72 of file subscriber.hpp.
|
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 121 of file subscriber.hpp.
References iox2::bb::err(), and iox2::bb::NULLOPT.
|
friend |
Definition at line 54 of file subscriber.hpp.