1#ifndef UVW_UV_TYPE_INCLUDE_H
2#define UVW_UV_TYPE_INCLUDE_H
19 explicit uv_type(loop::token, std::shared_ptr<loop> ref) noexcept
20 : owner{std::move(ref)}, resource{} {}
22 uv_type(
const uv_type &) =
delete;
23 uv_type(uv_type &&) =
delete;
25 uv_type &operator=(
const uv_type &) =
delete;
26 uv_type &operator=(uv_type &&) =
delete;
51 const U *
raw() const noexcept {
78 std::shared_ptr<loop> owner;
Common class for almost all the resources available in uvw.
Wrapper class for underlying types.
const U * raw() const noexcept
Gets the underlying raw data structure.
loop & parent() const noexcept
Gets the loop from which the resource was originated.
U * raw() noexcept
Gets the underlying raw data structure.