|
iceoryx2
C++ Bindings
|
#include <sample_mut_uninit.hpp>
Public Member Functions | |
| SampleMutUninit (SampleMutUninit &&rhs) noexcept=default | |
| auto | operator= (SampleMutUninit &&rhs) noexcept -> SampleMutUninit &=default |
| ~SampleMutUninit () noexcept=default | |
| SampleMutUninit (const SampleMutUninit &)=delete | |
| auto | operator= (const SampleMutUninit &) -> SampleMutUninit &=delete |
| template<typename T = Payload, typename = std::enable_if_t<!has_flatbuffer_marker<T>(), void>> | |
| auto | header () const -> HeaderPublishSubscribe |
| Returns a reference to the [Header] of the [Sample]. | |
| template<typename T = UserHeader, typename U = Payload, typename = std::enable_if_t<!std::is_same<void, UserHeader>::value && !has_flatbuffer_marker<U>(), T>> | |
| auto | user_header () const -> const T & |
| Returns a reference to the user_header of the [Sample]. | |
| template<typename T = UserHeader, typename U = Payload, typename = std::enable_if_t<!std::is_same<void, UserHeader>::value && !has_flatbuffer_marker<U>(), 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 && !has_flatbuffer_marker<T>(), 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 && !has_flatbuffer_marker<T>(), 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 > |
| Returns an immutable slice to the payload of the sample. | |
| template<typename T = Payload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> | |
| auto | payload_mut () -> bb::MutableSlice< ValueType > |
| Returns an mutable slice to the payload of the sample. | |
| template<typename T = Payload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> | |
| void | truncate (uint64_t number_of_elements) |
| template<typename T = Payload, typename = std::enable_if_t<!bb::IsSlice<T>::VALUE && !has_flatbuffer_marker<T>(), T>> | |
| auto | write_payload (T &&value) -> SampleMut< S, Payload, UserHeader > |
| Writes the payload to the sample. | |
| template<typename T = Payload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, T>> | |
| auto | write_from_fn (const iox2::bb::StaticFunction< typename T::ValueType(uint64_t)> &initializer) -> SampleMut< S, Payload, UserHeader > |
| Writes the payload to the sample. | |
| template<typename T = Payload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, T>> | |
| auto | write_from_slice (bb::ImmutableSlice< ValueType > &value) -> SampleMut< S, Payload, UserHeader > |
| mem copies the value to the sample | |
| template<typename T = Payload, typename = std::enable_if_t<has_flatbuffer_marker<T>(), T>> | |
| auto | flatbuffer_builder () -> flatbuffers::FlatBufferBuilder & |
Friends | |
| template<ServiceType, typename, typename> | |
| class | Publisher |
| template<ServiceType ST, typename PayloadT, typename UserHeaderT> | |
| auto | assume_init (SampleMutUninit< ST, PayloadT, UserHeaderT > &&self) -> SampleMut< ST, PayloadT, UserHeaderT > |
| template<ServiceType ST, typename PayloadT, typename UserHeaderT> | |
| auto | assume_init (SampleMutUninit< ST, Flatbuffer< PayloadT >, UserHeaderT > &&self, flatbuffers::Offset< PayloadT >) -> SampleMut< ST, Flatbuffer< PayloadT >, UserHeaderT > |
Definition at line 35 of file sample_mut_uninit.hpp.
|
defaultnoexcept |
References SampleMutUninit().
Referenced by assume_init, assume_init, operator=(), operator=(), SampleMutUninit(), and SampleMutUninit().
|
defaultnoexcept |
|
delete |
References SampleMutUninit().
|
inline |
Returns the internal [FlatBufferBuilder] that was constructed with the internal iceoryx2 allocator to enable true zero-copy data transfer.
Definition at line 160 of file sample_mut_uninit.hpp.
|
inline |
Returns a reference to the [Header] of the [Sample].
Definition at line 173 of file sample_mut_uninit.hpp.
Referenced by operator=().
|
delete |
|
defaultnoexcept |
References SampleMutUninit().
|
inline |
Returns an immutable slice to the payload of the sample.
Definition at line 203 of file sample_mut_uninit.hpp.
|
inline |
Returns a reference to the const payload of the sample.
Definition at line 191 of file sample_mut_uninit.hpp.
Referenced by operator=().
|
inline |
Returns an mutable slice to the payload of the sample.
Definition at line 209 of file sample_mut_uninit.hpp.
|
inline |
Returns a reference to the payload of the sample.
Definition at line 197 of file sample_mut_uninit.hpp.
Referenced by operator=(), write_from_fn(), write_from_slice(), and write_payload().
|
inline |
Shortens the payload to its first number_of_elements elements, so that only those are sent. It has no effect when number_of_elements is not smaller than the current number of elements.
Definition at line 215 of file sample_mut_uninit.hpp.
Referenced by operator=().
|
inline |
Returns a reference to the user_header of the [Sample].
Definition at line 179 of file sample_mut_uninit.hpp.
References user_header().
Referenced by operator=(), and user_header().
|
inline |
Returns a mutable reference to the user_header of the [Sample].
Definition at line 185 of file sample_mut_uninit.hpp.
References user_header_mut().
Referenced by operator=(), and user_header_mut().
|
inline |
Writes the payload to the sample.
Definition at line 228 of file sample_mut_uninit.hpp.
References payload_mut().
Referenced by operator=().
|
inline |
mem copies the value to the sample
Definition at line 239 of file sample_mut_uninit.hpp.
References IOX2_ASSERT, and payload_mut().
Referenced by operator=().
|
inline |
Writes the payload to the sample.
Definition at line 221 of file sample_mut_uninit.hpp.
References payload_mut().
Referenced by operator=().
|
friend |
References SampleMutUninit().
|
friend |
References SampleMutUninit().
|
friend |
Definition at line 108 of file sample_mut_uninit.hpp.
References Publisher.
Referenced by Publisher.