uvw 2.12.1
|
Wrapper class for underlying types. More...
#include <underlying_type.hpp>
Public Member Functions | |
Loop & | loop () const noexcept |
Gets the loop from which the resource was originated. | |
const U * | raw () const noexcept |
Gets the underlying raw data structure. | |
U * | raw () noexcept |
Gets the underlying raw data structure. | |
Static Public Member Functions | |
template<typename... Args> | |
static std::shared_ptr< T > | create (Args &&...args) |
Creates a new resource of the given type. | |
Wrapper class for underlying types.
It acts mainly as a wrapper around data structures of the underlying library.
Definition at line 17 of file underlying_type.hpp.
|
inlinestatic |
Creates a new resource of the given type.
args | Arguments to be forwarded to the actual constructor (if any). |
Definition at line 61 of file underlying_type.hpp.
|
inlinenoexcept |
Gets the loop from which the resource was originated.
Definition at line 69 of file underlying_type.hpp.
|
inlinenoexcept |
Gets the underlying raw data structure.
This function should not be used, unless you know exactly what you are doing and what are the risks.
Going raw is dangerous, mainly because the lifetime management of a loop, a handle or a request is in charge to the library itself and users should not work around it.
Definition at line 88 of file underlying_type.hpp.
|
inlinenoexcept |
Gets the underlying raw data structure.
This function should not be used, unless you know exactly what you are doing and what are the risks.
Going raw is dangerous, mainly because the lifetime management of a loop, a handle or a request is in charge to the library itself and users should not work around it.
Definition at line 107 of file underlying_type.hpp.