iceoryx_posh 2.0.3
List of all members
iox::popo::Publisher< T, H > Class Template Reference

The Publisher class for the publish-subscribe messaging pattern in iceoryx. More...

#include <iceoryx_posh/popo/publisher.hpp>

Inheritance diagram for iox::popo::Publisher< T, H >:
Inheritance graph
[legend]
Collaboration diagram for iox::popo::Publisher< T, H >:
Collaboration graph
[legend]

Additional Inherited Members

- Public Types inherited from iox::popo::BasePublisher< port_t >
using PortType = port_t
 
- Public Member Functions inherited from iox::popo::PublisherImpl< T, mepoo::NoUserHeader >
 PublisherImpl (const capro::ServiceDescription &service, const PublisherOptions &publisherOptions=PublisherOptions())
 
 PublisherImpl (const PublisherImpl &other)=delete
 
 PublisherImpl (PublisherImpl &&rhs)=delete
 
PublisherImploperator= (const PublisherImpl &)=delete
 
PublisherImploperator= (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...
 
- Public Member Functions inherited from iox::popo::BasePublisher< port_t >
 BasePublisher (const BasePublisher &other)=delete
 
BasePublisheroperator= (const BasePublisher &)=delete
 
 BasePublisher (BasePublisher &&rhs)=delete
 
BasePublisheroperator= (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...
 
- Protected Member Functions inherited from iox::popo::BasePublisher< port_t >
 BasePublisher (const capro::ServiceDescription &service, const PublisherOptions &publisherOptions)
 
const port_t & port () const noexcept
 port More...
 
port_t & port () noexcept
 port More...
 
- Protected Attributes inherited from iox::popo::BasePublisher< port_t >
port_t m_port {nullptr}
 

Detailed Description

template<typename T, typename H = mepoo::NoUserHeader>
class iox::popo::Publisher< T, H >

The Publisher class for the publish-subscribe messaging pattern in iceoryx.

Parameters
[in]Tuser payload type
[in]Huser header type

The documentation for this class was generated from the following file: