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

Wrapper around an uninitialized entry value that can be used for a zero-copy update. More...

#include <entry_value_uninit.hpp>

Public Member Functions

 EntryValueUninit (EntryValueUninit &&rhs) noexcept
auto operator= (EntryValueUninit &&rhs) noexcept -> EntryValueUninit &
 ~EntryValueUninit () noexcept
 EntryValueUninit (const EntryValueUninit &)=delete
auto operator= (const EntryValueUninit &) -> EntryValueUninit &=delete
auto value_mut () -> ValueType &

Friends

template<ServiceType, typename, typename>
class EntryHandleMut
template<ServiceType ST, typename KeyT, typename ValueT>
auto update_with_copy (EntryValueUninit< ST, KeyT, ValueT > &&self, ValueT value) -> EntryHandleMut< ST, KeyT, ValueT >
template<ServiceType ST, typename KeyT, typename ValueT>
auto discard (EntryValueUninit< ST, KeyT, ValueT > &&self) -> EntryHandleMut< ST, KeyT, ValueT >
 Discard the [EntryValueUninit] and returns the original [EntryHandleMut].
template<ServiceType ST, typename KeyT, typename ValueT>
auto assume_init_and_update (EntryValueUninit< ST, KeyT, ValueT > &&self) -> EntryHandleMut< ST, KeyT, ValueT >
template<ServiceType ST, typename KeyT, typename ValueT>
auto loan_uninit (EntryHandleMut< ST, KeyT, ValueT > &&) -> EntryValueUninit< ST, KeyT, ValueT >

Detailed Description

template<ServiceType S, typename KeyType, typename ValueType>
class iox2::EntryValueUninit< S, KeyType, ValueType >

Wrapper around an uninitialized entry value that can be used for a zero-copy update.

Definition at line 27 of file entry_value_uninit.hpp.

Constructor & Destructor Documentation

◆ EntryValueUninit() [1/2]

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

◆ ~EntryValueUninit()

template<ServiceType S, typename KeyType, typename ValueType>
iox2::EntryValueUninit< S, KeyType, ValueType >::~EntryValueUninit ( )
inlinenoexcept

Definition at line 105 of file entry_value_uninit.hpp.

◆ EntryValueUninit() [2/2]

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

References EntryValueUninit().

Member Function Documentation

◆ operator=() [1/2]

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

References EntryValueUninit().

◆ operator=() [2/2]

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

◆ value_mut()

template<ServiceType S, typename KeyType, typename ValueType>
auto iox2::EntryValueUninit< S, KeyType, ValueType >::value_mut ( ) ->ValueType &
inline

Returns a reference to the value of the blackboard entry. It can be used to update the value without copy. After writing, assume_init_and_update() must be called.

Definition at line 132 of file entry_value_uninit.hpp.

◆ assume_init_and_update

template<ServiceType S, typename KeyType, typename ValueType>
template<ServiceType ST, typename KeyT, typename ValueT>
auto assume_init_and_update ( EntryValueUninit< ST, KeyT, ValueT > && self) ->EntryHandleMut< ST, KeyT, ValueT >
friend

Consumes the [EntryValueUninit], makes the new value accessible and returns the original [EntryHandleMut].

References EntryHandleMut, and EntryValueUninit().

◆ discard

template<ServiceType S, typename KeyType, typename ValueType>
template<ServiceType ST, typename KeyT, typename ValueT>
auto discard ( EntryValueUninit< ST, KeyT, ValueT > && self) ->EntryHandleMut< ST, KeyT, ValueT >
friend

Discard the [EntryValueUninit] and returns the original [EntryHandleMut].

References EntryHandleMut, and EntryValueUninit().

◆ EntryHandleMut

template<ServiceType S, typename KeyType, typename ValueType>
template<ServiceType, typename, typename>
friend class EntryHandleMut
friend

Definition at line 57 of file entry_value_uninit.hpp.

References EntryHandleMut.

Referenced by assume_init_and_update, discard, EntryHandleMut, loan_uninit, and update_with_copy.

◆ loan_uninit

template<ServiceType S, typename KeyType, typename ValueType>
template<ServiceType ST, typename KeyT, typename ValueT>
auto loan_uninit ( EntryHandleMut< ST, KeyT, ValueT > && ) ->EntryValueUninit< ST, KeyT, ValueT >
friend

◆ update_with_copy

template<ServiceType S, typename KeyType, typename ValueType>
template<ServiceType ST, typename KeyT, typename ValueT>
auto update_with_copy ( EntryValueUninit< ST, KeyT, ValueT > && self,
ValueT value )->EntryHandleMut< ST, KeyT, ValueT >
friend

Consumes the [EntryValueUninit], writes value to the entry value and returns the original [EntryHandleMut].

References EntryHandleMut, and EntryValueUninit().


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