iceoryx2
C++ Bindings
Loading...
Searching...
No Matches
iox2::Writer< S, KeyType > Class Template Reference

Producing endpoint of a blackboard based communication. More...

#include <writer.hpp>

Public Member Functions

 Writer (Writer &&rhs) noexcept
auto operator= (Writer &&rhs) noexcept -> Writer &
 ~Writer ()
 Writer (const Writer &)=delete
auto operator= (const Writer &) -> Writer &=delete
auto id () const -> UniqueWriterId
 Returns the [UniqueWriterId] of the [Writer].
auto name () const -> PortNameView
 Returns the [PortNameView] of the [Writer].
template<typename ValueType>
auto entry (const KeyType &key) -> bb::Expected< EntryHandleMut< S, KeyType, ValueType >, EntryHandleMutError >

Friends

template<ServiceType, typename>
class PortFactoryWriter

Detailed Description

template<ServiceType S, typename KeyType>
class iox2::Writer< S, KeyType >

Producing endpoint of a blackboard based communication.

Definition at line 27 of file writer.hpp.

Constructor & Destructor Documentation

◆ Writer() [1/2]

template<ServiceType S, typename KeyType>
iox2::Writer< S, KeyType >::Writer ( Writer< S, KeyType > && rhs)
inlinenoexcept

Definition at line 71 of file writer.hpp.

References Writer().

Referenced by operator=(), operator=(), PortFactoryWriter, Writer(), and Writer().

◆ ~Writer()

template<ServiceType S, typename KeyType>
iox2::Writer< S, KeyType >::~Writer ( )
inline

Definition at line 87 of file writer.hpp.

◆ Writer() [2/2]

template<ServiceType S, typename KeyType>
iox2::Writer< S, KeyType >::Writer ( const Writer< S, KeyType > & )
delete

References Writer().

Member Function Documentation

◆ entry()

template<ServiceType S, typename KeyType>
template<typename ValueType>
auto iox2::Writer< S, KeyType >::entry ( const KeyType & key) ->bb::Expected< EntryHandleMut< S, KeyType, ValueType >, EntryHandleMutError >
inline

Creates an [EntryHandleMut] for direct write access to the value. There can be only one [EntryHandleMut] per value.

Definition at line 107 of file writer.hpp.

References iox2::bb::err(), iox2::internal::get_type_name(), and iox2::bb::into().

Referenced by operator=().

◆ id()

template<ServiceType S, typename KeyType>
auto iox2::Writer< S, KeyType >::id ( ) const->UniqueWriterId
inline

Returns the [UniqueWriterId] of the [Writer].

Definition at line 92 of file writer.hpp.

◆ name()

template<ServiceType S, typename KeyType>
auto iox2::Writer< S, KeyType >::name ( ) const->PortNameView
inline

Returns the [PortNameView] of the [Writer].

Definition at line 100 of file writer.hpp.

References iox2::PortNameView::from_native_ptr().

Referenced by operator=().

◆ operator=() [1/2]

template<ServiceType S, typename KeyType>
auto iox2::Writer< S, KeyType >::operator= ( const Writer< S, KeyType > & ) ->Writer &=delete
delete

References entry(), name(), and Writer().

◆ operator=() [2/2]

template<ServiceType S, typename KeyType>
auto iox2::Writer< S, KeyType >::operator= ( Writer< S, KeyType > && rhs) ->Writer &
inlinenoexcept

Definition at line 76 of file writer.hpp.

References Writer().

◆ PortFactoryWriter

template<ServiceType S, typename KeyType>
template<ServiceType, typename>
friend class PortFactoryWriter
friend

Definition at line 49 of file writer.hpp.

References PortFactoryWriter, and Writer().

Referenced by PortFactoryWriter.


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