Flutter Engine
The Flutter Engine
|
A unique handle to a resource which will be reclaimed by the specified resource manager. More...
#include <resource_manager_vk.h>
Public Types | |
using | ResourceType = ResourceType_ |
Public Member Functions | |
UniqueResourceVKT (std::weak_ptr< ResourceManagerVK > resource_manager) | |
Construct a unique resource handle belonging to a manager. More... | |
UniqueResourceVKT (std::weak_ptr< ResourceManagerVK > resource_manager, ResourceType &&resource) | |
Construct a unique resource handle belonging to a manager. More... | |
~UniqueResourceVKT () | |
const ResourceType * | operator-> () const |
Returns a pointer to the resource. More... | |
void | Swap (ResourceType &&other) |
Reclaims the existing resource, if any, and replaces it. More... | |
void | Reset () |
Reclaims the existing resource, if any. More... | |
A unique handle to a resource which will be reclaimed by the specified resource manager.
ResourceType_ | A move-constructible resource type. |
Definition at line 143 of file resource_manager_vk.h.
using impeller::UniqueResourceVKT< ResourceType_ >::ResourceType = ResourceType_ |
Definition at line 145 of file resource_manager_vk.h.
|
inlineexplicit |
Construct a unique resource handle belonging to a manager.
Initially the handle is empty, and can be populated by calling Swap
.
[in] | resource_manager | The resource manager. |
Definition at line 152 of file resource_manager_vk.h.
|
inlineexplicit |
Construct a unique resource handle belonging to a manager.
Initially the handle is populated with the specified resource, but can be replaced (reclaiming the old resource) by calling Swap
.
[in] | resource_manager | The resource manager. |
[in] | resource | The resource to move. |
Definition at line 162 of file resource_manager_vk.h.
|
inline |
Definition at line 168 of file resource_manager_vk.h.
|
inline |
Returns a pointer to the resource.
Definition at line 171 of file resource_manager_vk.h.
|
inline |
Reclaims the existing resource, if any.
Definition at line 187 of file resource_manager_vk.h.
|
inline |
Reclaims the existing resource, if any, and replaces it.
[in] | other | The (new) resource to move. |
Definition at line 181 of file resource_manager_vk.h.