Unravel Engine C++ Reference
Loading...
Searching...
No Matches
asset_link< T > Struct Template Reference

Represents a link to an asset, including its task and weak pointer. More...

#include <asset_handle.h>

Public Types

using task_future_t = task_future<std::shared_ptr<T>>
 
using weak_asset_t = std::weak_ptr<T>
 

Public Attributes

hpp::uuid uid {}
 Unique identifier for the asset.
 
std::string id {}
 String identifier for the asset.
 
task_future_t task {}
 Task future for the asset.
 
weak_asset_t weak_asset {}
 Weak pointer to the asset.
 

Detailed Description

template<typename T>
struct asset_link< T >

Represents a link to an asset, including its task and weak pointer.

Template Parameters
TThe type of the asset.

Definition at line 21 of file asset_handle.h.

Member Typedef Documentation

◆ task_future_t

template<typename T >
using asset_link< T >::task_future_t = task_future<std::shared_ptr<T>>

Definition at line 23 of file asset_handle.h.

◆ weak_asset_t

template<typename T >
using asset_link< T >::weak_asset_t = std::weak_ptr<T>

Definition at line 24 of file asset_handle.h.

Member Data Documentation

◆ id

template<typename T >
std::string asset_link< T >::id {}

String identifier for the asset.

Definition at line 29 of file asset_handle.h.

◆ task

template<typename T >
task_future_t asset_link< T >::task {}

Task future for the asset.

Definition at line 31 of file asset_handle.h.

◆ uid

template<typename T >
hpp::uuid asset_link< T >::uid {}

Unique identifier for the asset.

Definition at line 27 of file asset_handle.h.

◆ weak_asset

template<typename T >
weak_asset_t asset_link< T >::weak_asset {}

Weak pointer to the asset.

Definition at line 33 of file asset_handle.h.


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