Karma Engine
Loading...
Searching...
No Matches
Karma::FFieldVariant Class Reference

#include <Field.h>

Public Member Functions

 FFieldVariant (const FField *InField)
 
template<typename T , decltype(ImplicitConv< const UObject * >(std::declval< T >())) * = nullptr>
 FFieldVariant (T &&InObject)
 
bool IsUObject () const
 
bool IsValid () const
 
bool IsValidLowLevel () const
 
 operator bool () const
 
bool IsA (const UClass *InClass) const
 
bool IsA (const FFieldClass *InClass) const
 
template<typename T >
bool IsA () const
 
UObjectToUObject () const
 
FFieldToField () const
 
FORCEINLINE FFieldToFieldUnsafe () const
 
FORCEINLINE UObjectToUObjectUnsafe () const
 
void * GetRawPointer () const
 
FFieldVariant GetOwnerVariant () const
 
UClassGetOwnerClass () 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
 

Detailed Description

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.

Member Function Documentation

◆ ToFieldUnsafe()

FORCEINLINE FField * Karma::FFieldVariant::ToFieldUnsafe ( ) const
inline

FOR INTERNAL USE ONLY: Function that returns the owner as FField without checking if it's actually an FField

◆ ToUObjectUnsafe()

FORCEINLINE UObject * Karma::FFieldVariant::ToUObjectUnsafe ( ) const
inline

FOR INTERNAL USE ONLY: Function that returns the owner as UObject without checking if it's actually a UObject


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