The HandleGuard class provides a reference counted reference to a graphics handle. More...
#include <kanzi/gfx/handles.hpp>
Public Member Functions | |
| T_Handle | get () const |
| Gets the underlying handle value. | |
| HandleGuard ()=default | |
| Constructor. | |
| HandleGuard (const HandleGuard &other) | |
| Copy Constructor. | |
| HandleGuard (HandleGuard &&other) noexcept | |
| Move Constructor. | |
| HandleGuard (T_Handle h) | |
| Constructor. | |
| bool | isValid () const |
| Returns whether a handle is valid. | |
| operator bool () const | |
| Tests the validity of a handle. | |
| operator T_Handle () const | |
| Automatic conversion into underlying handle type. | |
| HandleGuard & | operator= (const HandleGuard &other) |
| Assignment operator. | |
| HandleGuard & | operator= (HandleGuard &&other) noexcept |
| Move assignment operator. | |
| ~HandleGuard () | |
| Destructor. | |
The HandleGuard class provides a reference counted reference to a graphics handle.
When all references to the object are released, the object is destroyed.
| T_Handle | The type of the handle that the guard wraps. |