|
| | SampleMut (SampleMut &&rhs) noexcept |
| |
| auto | operator= (SampleMut &&rhs) noexcept -> SampleMut & |
| |
| | ~SampleMut () noexcept |
| |
| | SampleMut (const SampleMut &)=delete |
| |
| auto | operator= (const SampleMut &) -> SampleMut &=delete |
| |
| auto | header () const -> HeaderPublishSubscribe |
| | Returns a reference to the [Header] of the [Sample].
|
| |
| template<typename T = UserHeader, typename = std::enable_if_t<!std::is_same<void, UserHeader>::value, T>> |
| auto | user_header () const -> const T & |
| | Returns a reference to the user_header of the [Sample].
|
| |
| template<typename T = UserHeader, typename = std::enable_if_t<!std::is_same<void, UserHeader>::value, T>> |
| auto | user_header_mut () -> T & |
| | Returns a mutable reference to the user_header of the [Sample].
|
| |
| template<typename T = Payload, typename = std::enable_if_t<!bb::IsSlice<T>::VALUE, void>> |
| auto | payload () const -> const ValueType & |
| | Returns a reference to the const payload of the sample.
|
| |
| template<typename T = Payload, typename = std::enable_if_t<!bb::IsSlice<T>::VALUE, void>> |
| auto | payload_mut () -> ValueType & |
| | Returns a reference to the payload of the sample.
|
| |
| template<typename T = Payload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> |
| auto | payload () const -> bb::ImmutableSlice< ValueType > |
| |
| template<typename T = Payload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> |
| auto | payload_mut () -> bb::MutableSlice< ValueType > |
| |
template<
ServiceType S, typename Payload, typename UserHeader>
class iox2::SampleMut< S, Payload, UserHeader >
Acquired by a [Publisher] via
It stores the payload that will be sent to all connected [Subscriber]s. If the [SampleMut] is not sent it will release the loaned memory when going out of scope.
Notes
Does not implement [Send] since it releases unsent samples in the [Publisher] and the [Publisher] is not thread-safe!
Important
DO NOT MOVE THE SAMPLE INTO ANOTHER THREAD!
Definition at line 50 of file sample_mut.hpp.