Kanzi 4.0.0-beta2
kanzi::gfx::HandleGuard< T_Handle > Class Template Reference

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.
 
HandleGuardoperator= (const HandleGuard &other)
 Assignment operator.
 
HandleGuardoperator= (HandleGuard &&other) noexcept
 Move assignment operator.
 
 ~HandleGuard ()
 Destructor.
 

Detailed Description

template<typename T_Handle>
class kanzi::gfx::HandleGuard< T_Handle >

The HandleGuard class provides a reference counted reference to a graphics handle.

When all references to the object are released, the object is destroyed.

Template Parameters
T_HandleThe type of the handle that the guard wraps.
Since
Kanzi 4.0.0

The documentation for this class was generated from the following file: