|
iceoryx2
C++ Language Bindings
|
Non-owning view of a [PortName].
More...
#include <port_name.hpp>
Public Member Functions | |
| PortNameView (PortNameView &&) noexcept=default | |
| PortNameView (const PortNameView &)=default | |
| auto | operator= (PortNameView &&) noexcept -> PortNameView &=default |
| auto | operator= (const PortNameView &) -> PortNameView &=default |
| ~PortNameView () noexcept=default | |
| auto | native_ptr () const -> iox2_port_name_ptr |
Returns the native [iox2_port_name_ptr]. | |
| auto | to_string () const -> iox2::bb::StaticString< IOX2_PORT_NAME_LENGTH > |
Returns a [iox2::bb::StaticString] containing the [PortName]. | |
| auto | to_owned () const -> PortName |
Creates a copy of the corresponding [PortName] and returns it. | |
Static Public Member Functions | |
| static auto | from_native_ptr (iox2_port_name_ptr m_ptr) -> PortNameView |
Creates a [PortNameView] from a native [iox2_port_name_ptr]. | |
Non-owning view of a [PortName].
Definition at line 25 of file port_name.hpp.
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
|
static |
Creates a [PortNameView] from a native [iox2_port_name_ptr].
Referenced by iox2::Client< Service, RequestPayload, RequestUserHeader, ResponsePayload, ResponseUserHeader >::name(), iox2::Listener< ServiceType >::name(), iox2::Publisher< S, Payload, UserHeader >::name(), iox2::Reader< S, KeyType >::name(), iox2::Server< Service, RequestPayload, RequestHeader, ResponsePayload, ResponseHeader >::name(), iox2::Subscriber< S, Payload, UserHeader >::name(), and iox2::Writer< S, KeyType >::name().
| auto iox2::PortNameView::native_ptr | ( | ) | const -> iox2_port_name_ptr |
Returns the native [iox2_port_name_ptr].
|
default |
|
defaultnoexcept |
| auto iox2::PortNameView::to_owned | ( | ) | const -> PortName |
Creates a copy of the corresponding [PortName] and returns it.
| auto iox2::PortNameView::to_string | ( | ) | const -> iox2::bb::StaticString< IOX2_PORT_NAME_LENGTH > |
Returns a [iox2::bb::StaticString] containing the [PortName].