|
Deki 1.3.0
Modular C++ 2D engine for embedded displays and desktop
|
Type-safe asset reference wrapper. More...
#include <AssetRef.h>
Inherits Deki::AssetRefBase.
Public Member Functions | |
| T * | Get () |
| const T * | Get () const |
| T * | operator-> () |
| const T * | operator-> () const |
| T & | operator* () |
| const T & | operator* () const |
| operator T* () | |
| operator const T * () const | |
| operator bool () const | |
| AssetRef & | operator= (T *p) |
| bool | operator== (const T *other) const |
| bool | operator!= (const T *other) const |
| bool | operator== (std::nullptr_t) const |
| bool | operator!= (std::nullptr_t) const |
| Public Member Functions inherited from Deki::AssetRefBase | |
| bool | HasGuid () const |
| bool | HasSource () const |
| bool | IsLoaded () const |
Additional Inherited Members | |
| Public Attributes inherited from Deki::AssetRefBase | |
| void * | ptr = nullptr |
| std::string | guid |
| std::string | source |
| bool | loadAttempted = false |
| uint64_t | cachedEpoch = 0 |
Type-safe asset reference wrapper.
Provides transparent access to the underlying asset pointer while storing the GUID for asset loading. Works with any type T that has a static constexpr const char* AssetTypeName member.
| T | The asset type (must expose a static AssetTypeName member) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |