KarmaEngine
Game Engine for practical learning and research purposes
|
Special container that can hold either UObject or FField. More...
#include <Field.h>
Public Member Functions | |
FFieldVariant () | |
Constructor. | |
FFieldVariant (const FField *InField) | |
Overloaded constructor (FField) | |
template<typename T, decltype(ImplicitConv< const UObject * >(std::declval< T >())) * = nullptr> | |
FFieldVariant (T &&InObject) | |
Overloaded template constructor (UObject) | |
bool | IsUObject () const |
Getter for bIsUobject. | |
bool | IsValid () const |
Maybe sees if UObject is being held. | |
bool | IsValidLowLevel () const |
operator bool () const | |
A boolean conversion operator for the class https://en.cppreference.com/w/cpp/language/cast_operator. | |
bool | IsA (const UClass *InClass) const |
bool | IsA (const FFieldClass *InClass) const |
template<typename T> | |
bool | IsA () const |
UObject * | ToUObject () const |
Getter for UObject if possible. | |
FField * | ToField () const |
Getter for FField if possible. | |
FORCEINLINE FField * | ToFieldUnsafe () const |
FORCEINLINE UObject * | ToUObjectUnsafe () const |
void * | GetRawPointer () const |
FFieldVariant | GetOwnerVariant () const |
UClass * | GetOwnerClass () const |
const std::string & | GetFullName () const |
const std::string & | GetPathName () const |
const std::string & | GetName () const |
const std::string & | GetClassName () const |
const std::string & | GetFName () const |
bool | IsNative () const |
bool | operator== (const FFieldVariant &Other) const |
bool | operator!= (const FFieldVariant &Other) const |
Special container that can hold either UObject or FField.
Exposes common interface of FFields and UObjects for easier transition from UProperties to FProperties. DO NOT ABUSE. IDEALLY THIS SHOULD ONLY BE FFIELD INTERNAL STRUCTURE FOR HOLDING A POINTER TO THE OWNER OF AN FFIELD.
|
inline |
Constructor.
|
inline |
|
inline |
|
inline |
Seems like ToFieldUnsafe.
bool Karma::FFieldVariant::IsA | ( | const FFieldClass * | InClass | ) | const |
|
inline |
|
inline |
bool Karma::FFieldVariant::IsValidLowLevel | ( | ) | const |
No clue
|
inline |
A boolean conversion operator for the class https://en.cppreference.com/w/cpp/language/cast_operator.
|
inline |
|
inline |
|
inline |
|
inline |