#include <Asset.h>
|
virtual FORCEINLINE EAssetType | GetAssetType () const |
|
FORCEINLINE bool | HasFlag (const EAssetFlag Flag) const |
|
FORCEINLINE void | SetFlag (const EAssetFlag Flag, bool Value=true) |
|
virtual FORCEINLINE bool | IsValid () const |
|
virtual bool | operator== (const LAsset &Other) const |
|
virtual bool | operator!= (const LAsset &Other) const |
|
| LObject (const LObject &Other) |
|
virtual void | Initialize () |
| Initialize object.
|
|
virtual void | Destroy () |
| Destroy object, releasing all resources.
|
|
virtual FORCEINLINE bool | IsInitialized () const |
| Check if object is initialized.
|
|
FORCEINLINE FObjectHandle | GetObjectHandle () const |
| Get the object handle.
|
|
virtual FORCEINLINE bool | IsObjectValid () const |
| Check if object is valid for use.
|
|
virtual const LClass * | ObjectRegistration ()=0 |
| Register object class.
|
|
virtual FORCEINLINE const LClass * | GetClass () const |
| Get the class for this LObject.
|
|
virtual std::string | ClassName () const =0 |
| Get name of the LObject class.
|
|
LObject & | operator= (const LObject &Other) |
|
void | MarkAsGarbage () |
| Mark object as garbage.
|
|
template<typename T > |
T & | As () |
| Cast object to type T.
|
|
template<typename T > |
const T & | As () const |
| Cast object to type T.
|
|
template<typename T > |
bool | IsA () const |
| Check if the object is or is a derivation of type T.
|
|
virtual FORCEINLINE bool | IsAsset () const |
| Check if object is an asset.
|
|
FORCEINLINE uint32_t | GetReferenceCount () const |
| Return current reference count from all object pointers.
|
|
template<typename OtherClassType > |
FORCEINLINE bool | IsA (OtherClassType OtherObject) const |
| Check if the object is the same type as the passed object's.
|
|
|
static FORCEINLINE EAssetType | GetStaticType () |
|
static FORCEINLINE const LClass * | StaticClass () |
| Get static class object.
|
|
static FORCEINLINE std::string | StaticClassName () |
| Static class name.
|
|
template<typename T > |
static void | ValidateLObjectImplementation () |
| Validate the implementation of a LObject.
|
|
template<typename ClassType > |
static FORCEINLINE bool | IsChildOf (const ClassType *InObjectClass, const ClassType *InOtherClass) |
| Check if the object is a child of another class.
|
|
◆ AssetFlags
std::underlying_type_t<EAssetFlag> LkEngine::LAsset::AssetFlags = static_cast<std::underlying_type_t<EAssetFlag>>(EAssetFlag::None) |
The underlying type needs to be used for the member because of the enum class. The operations use the enum class as usual, the primitive type is only used for the flag storage.
The documentation for this class was generated from the following file:
- LkEngine/Source/LkEngine/Asset/Asset.h