nicegraf
|
Public Types | |
typedef ObjectManagementFuncs::InitType | init_type |
Public Member Functions | |
ngf_handle (T raw) | |
ngf_handle () | |
ngf_handle (const ngf_handle &)=delete | |
ngf_handle (ngf_handle &&other) | |
~ngf_handle () | |
ngf_handle & | operator= (const ngf_handle &)=delete |
ngf_handle & | operator= (ngf_handle &&other) noexcept |
ngf_error | initialize (const typename ObjectManagementFuncs::InitType &info) |
T | get () |
const T | get () const |
T | release () |
operator T () | |
operator const T () const | |
void | reset (T new_handle) |
A move-only RAII wrapper over nicegraf handles that provides unique ownership semantics.
|
inlineexplicit |
Wraps a raw handle to a nicegraf object.
|
inline |
Wraps a null handle.
|
inline |
Disposes of the owned handle, if it is not null.
|
inline |
|
inline |
|
inline |
Creates a new handle using the provided configuration, and takes ownership of it.
|
inline |
Implicit conversion to the raw handle type.
|
inline |
Implicit conversion to the raw handle type.
|
inlinenoexcept |
Takes ownership of the handle wrapped by another object.
|
inline |
Relinquishes ownership of the wrapped object and returns a raw handle to it. After this call completes, it is the responsibility of the calling code to dispose of the handle properly when it is no longer needed.
|
inline |
Wraps a raw handle to a nicegraf object.