|
iceoryx2
C++ Language Bindings
|
#include <file_descriptor.hpp>
Public Member Functions | |
| FileDescriptor (const FileDescriptor &)=delete | |
| auto | operator= (const FileDescriptor &) -> FileDescriptor &=delete |
| FileDescriptor (FileDescriptor &&rhs) noexcept | |
| auto | operator= (FileDescriptor &&rhs) noexcept -> FileDescriptor & |
| ~FileDescriptor () | |
| auto | unsafe_native_handle () const -> int32_t |
| auto | as_view () const -> FileDescriptorView |
Static Public Member Functions | |
| static auto | create_owning (int32_t file_descriptor) -> bb::Optional< FileDescriptor > |
| static auto | create_non_owning (int32_t file_descriptor) -> bb::Optional< FileDescriptor > |
Contains a [FileDescriptor] that will be closed when the object owns the descriptor and goes out of scope.
Definition at line 66 of file file_descriptor.hpp.
|
delete |
|
noexcept |
| iox2::FileDescriptor::~FileDescriptor | ( | ) |
| auto iox2::FileDescriptor::as_view | ( | ) | const -> FileDescriptorView |
Creates a [FileDescriptorView] out of the [FileDescriptor]. The view is only valid as long as the [FileDescriptor] is living - otherwise it will be a dangling view.
|
static |
Creates a new [FileDescriptor] object that does not own it. If the provided value is an invalid [FileDescriptor] it returns [bb::NULLOPT].
|
static |
Creates a new [FileDescriptor] object that owns it. If the provided value is an invalid [FileDescriptor] it returns [bb::NULLOPT].
|
delete |
|
noexcept |
| auto iox2::FileDescriptor::unsafe_native_handle | ( | ) | const -> int32_t |
Returns the underlying [FileDescriptor] value.