|
iceoryx2
C++ Bindings
|
#include <response_mut.hpp>
Public Member Functions | |
| ResponseMut (ResponseMut &&rhs) noexcept | |
| auto | operator= (ResponseMut &&rhs) noexcept -> ResponseMut & |
| ~ResponseMut () noexcept | |
| ResponseMut (const ResponseMut &)=delete | |
| auto | operator= (const ResponseMut &) -> ResponseMut &=delete |
| auto | header () const -> ResponseHeader |
| Returns a reference to the [ResponseHeader]. | |
| template<typename T = ResponseUserHeader, typename = std::enable_if_t<!std::is_same<void, ResponseUserHeader>::value, T>> | |
| auto | user_header () const -> const T & |
| Returns a reference to the user header of the response. | |
| template<typename T = ResponseUserHeader, typename = std::enable_if_t<!std::is_same<void, ResponseUserHeader>::value, T>> | |
| auto | user_header_mut () -> T & |
| Returns a mutable reference to the user header of the response. | |
| template<typename T = ResponsePayload, typename = std::enable_if_t<!bb::IsSlice<T>::VALUE && !has_flatbuffer_marker<T>(), void>> | |
| auto | payload () const -> const ResponsePayload & |
| Returns a reference to the payload of the response. | |
| template<typename T = ResponsePayload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> | |
| auto | payload () const -> bb::ImmutableSlice< ValueType > |
| Returns a reference to the payload of the response. | |
| template<typename T = ResponsePayload, typename = std::enable_if_t<!bb::IsSlice<T>::VALUE && !has_flatbuffer_marker<T>(), void>> | |
| auto | payload_mut () -> ResponsePayload & |
| Returns a mutable reference to the payload of the response. | |
| template<typename T = ResponsePayload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> | |
| auto | payload_mut () -> bb::MutableSlice< ValueType > |
| Returns a mutable reference to the payload of the response. | |
| template<typename T = ResponsePayload, typename = std::enable_if_t<bb::IsSlice<T>::VALUE, void>> | |
| void | truncate (uint64_t number_of_elements) |
| template<typename T = ResponsePayload, typename = std::enable_if_t<has_flatbuffer_marker<T>(), void>> | |
| auto | payload_bytes () const -> bb::ImmutableSlice< uint8_t > |
| Returns the serialized flatbuffer data as bytes. | |
| template<typename T = ResponsePayload, typename = std::enable_if_t<has_flatbuffer_marker<T>(), void>> | |
| auto | payload_root () const -> const typename T::ValueType * |
| Returns the root of the flatbuffer. | |
Friends | |
| template<ServiceType, typename, typename> | |
| class | ResponseMutUninit |
| template<ServiceType, typename, typename, typename, typename> | |
| class | ActiveRequest |
| template<ServiceType S, typename ResponsePayloadT, typename ResponseUserHeaderT> | |
| auto | send (ResponseMut< S, ResponsePayloadT, ResponseUserHeaderT > &&response) -> bb::Expected< void, SendError > |
Acquired by a [ActiveRequest] with
It stores the payload of the response that will be sent to the corresponding [PendingResponse] of the [Client].
If the [ResponseMut] is not sent it will reelase the loaned memory when going out of scope.
Definition at line 43 of file response_mut.hpp.
|
inlinenoexcept |
Definition at line 120 of file response_mut.hpp.
References ResponseMut().
Referenced by operator=(), operator=(), ResponseMut(), ResponseMut(), and send.
|
inlinenoexcept |
Definition at line 144 of file response_mut.hpp.
|
delete |
References ResponseMut().
|
inline |
Returns a reference to the [ResponseHeader].
Definition at line 172 of file response_mut.hpp.
Referenced by payload_bytes().
|
delete |
References iox2::has_flatbuffer_marker(), payload(), payload_mut(), payload_root(), ResponseMut(), truncate(), user_header(), and user_header_mut().
|
inlinenoexcept |
Definition at line 131 of file response_mut.hpp.
References iox2::internal::iox2_response_mut_move(), and ResponseMut().
|
inline |
Returns a reference to the payload of the response.
Definition at line 204 of file response_mut.hpp.
|
inline |
Returns a reference to the payload of the response.
Definition at line 196 of file response_mut.hpp.
Referenced by operator=().
|
inline |
Returns the serialized flatbuffer data as bytes.
Definition at line 151 of file response_mut.hpp.
References header().
Referenced by payload_root().
|
inline |
Returns a mutable reference to the payload of the response.
Definition at line 230 of file response_mut.hpp.
|
inline |
Returns a mutable reference to the payload of the response.
Definition at line 222 of file response_mut.hpp.
Referenced by operator=().
|
inline |
Returns the root of the flatbuffer.
Definition at line 165 of file response_mut.hpp.
References payload_bytes().
Referenced by operator=().
|
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 247 of file response_mut.hpp.
Referenced by operator=().
|
inline |
Returns a reference to the user header of the response.
Definition at line 180 of file response_mut.hpp.
Referenced by operator=().
|
inline |
Returns a mutable reference to the user header of the response.
Definition at line 188 of file response_mut.hpp.
Referenced by operator=().
|
friend |
Definition at line 104 of file response_mut.hpp.
References ActiveRequest.
Referenced by ActiveRequest.
|
friend |
Definition at line 102 of file response_mut.hpp.
References ResponseMutUninit.
Referenced by ResponseMutUninit.
|
friend |
Sends a [ResponseMut] to the corresponding [PendingResponse] of the [Client].
References ResponseMut().