1#ifndef UVW_UV_TYPE_INCLUDE_H
2#define UVW_UV_TYPE_INCLUDE_H
19 explicit uv_type(loop::token token, std::shared_ptr<loop> ref) noexcept
20 : owner{std::move(ref)},
resource{} {}
59 const U *
raw() const noexcept {
83 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.
virtual int init()
Initializes the handle.
U * raw() noexcept
Gets the underlying raw data structure.