iceoryx_posh 2.0.3
|
The Publisher class for the publish-subscribe messaging pattern in iceoryx. More...
#include <iceoryx_posh/popo/publisher.hpp>
Additional Inherited Members | |
![]() | |
using | PortType = port_t |
![]() | |
PublisherImpl (const capro::ServiceDescription &service, const PublisherOptions &publisherOptions=PublisherOptions()) | |
PublisherImpl (const PublisherImpl &other)=delete | |
PublisherImpl (PublisherImpl &&rhs)=delete | |
PublisherImpl & | operator= (const PublisherImpl &)=delete |
PublisherImpl & | operator= (PublisherImpl &&rhs)=delete |
cxx::expected< Sample< T, mepoo::NoUserHeader >, AllocationError > | loan (Args &&... args) noexcept |
loan Get a sample from loaned shared memory and consctruct the data with the given arguments. More... | |
void | publish (Sample< T, mepoo::NoUserHeader > &&sample) noexcept override |
publish Publishes the given sample and then releases its loan. More... | |
cxx::expected< AllocationError > | publishCopyOf (const T &val) noexcept |
publishCopyOf Copy the provided value into a loaned shared memory chunk and publish it. More... | |
cxx::expected< AllocationError > | publishResultOf (Callable c, ArgTypes... args) noexcept |
publishResultOf Loan a sample from memory, execute the provided callable to write to it, then publish it. More... | |
![]() | |
BasePublisher (const BasePublisher &other)=delete | |
BasePublisher & | operator= (const BasePublisher &)=delete |
BasePublisher (BasePublisher &&rhs)=delete | |
BasePublisher & | operator= (BasePublisher &&rhs)=delete |
uid_t | getUid () const noexcept |
uid Get the UID of the publisher. More... | |
capro::ServiceDescription | getServiceDescription () const noexcept |
getServiceDescription Get the service description of the publisher. More... | |
void | offer () noexcept |
offer Offer the service to be subscribed to. | |
void | stopOffer () noexcept |
stopOffer Stop offering the service. | |
bool | isOffered () const noexcept |
isOffered More... | |
bool | hasSubscribers () const noexcept |
hasSubscribers More... | |
![]() | |
BasePublisher (const capro::ServiceDescription &service, const PublisherOptions &publisherOptions) | |
const port_t & | port () const noexcept |
port More... | |
port_t & | port () noexcept |
port More... | |
![]() | |
port_t | m_port {nullptr} |
The Publisher class for the publish-subscribe messaging pattern in iceoryx.
[in] | T | user payload type |
[in] | H | user header type |