|
iceoryx2
C++ Bindings
|
#include <response.hpp>
Public Member Functions | |
| Response (Response &&rhs) noexcept | |
| auto | operator= (Response &&rhs) noexcept -> Response & |
| ~Response () noexcept | |
| Response (const Response &) noexcept=delete | |
| auto | operator= (const Response &) noexcept -> Response &=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 = ResponsePayload, typename = std::enable_if_t<!bb::IsSlice<T>::VALUE && !has_flatbuffer_marker<T>(), void>> | |
| auto | payload () const -> const T & |
| 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. | |
| auto | origin () const -> UniqueServerId |
| 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, typename, typename> | |
| class | PendingResponse |
It stores the payload and can be received by the [PendingResponse] after a [RequestMut] was sent to a [Server] via the [Client].
Definition at line 33 of file response.hpp.
|
inlinenoexcept |
Definition at line 87 of file response.hpp.
References Response().
Referenced by operator=(), operator=(), Response(), and Response().
|
inlinenoexcept |
Definition at line 103 of file response.hpp.
|
deletenoexcept |
References Response().
|
inline |
Returns a reference to the [ResponseHeader].
Definition at line 131 of file response.hpp.
Referenced by origin(), and payload_bytes().
|
deletenoexcept |
References iox2::has_flatbuffer_marker(), origin(), payload(), payload_root(), Response(), and user_header().
|
inlinenoexcept |
Definition at line 92 of file response.hpp.
References Response().
|
inline |
Returns the [UniqueServerId] of the [Server] which sent the [Response].
Definition at line 171 of file response.hpp.
References header().
Referenced by operator=().
|
inline |
Returns a reference to the payload of the response.
Definition at line 155 of file response.hpp.
|
inline |
Returns a reference to the payload of the response.
Definition at line 147 of file response.hpp.
Referenced by operator=().
|
inline |
Returns the serialized flatbuffer data as bytes.
Definition at line 110 of file response.hpp.
References header().
Referenced by payload_root().
|
inline |
Returns the root of the flatbuffer.
Definition at line 124 of file response.hpp.
References payload_bytes().
Referenced by operator=().
|
inline |
Returns a reference to the user header of the response.
Definition at line 139 of file response.hpp.
Referenced by operator=().
|
friend |
Definition at line 77 of file response.hpp.
References PendingResponse.
Referenced by PendingResponse.