Karma Engine
|
#include <Class.h>
Public Member Functions | |
UClass () | |
UClass (const std::string &name) | |
UClass (const std::string &name, size_t size, size_t alignment, ClassConstructorType inClassConstructor) | |
virtual const std::string & | GetDesc () override |
Return a one line description of an object for viewing in the thumbnail view of the generic browser. | |
FORCEINLINE bool | HasAnyClassFlags (EClassFlags FlagsToCheck) const |
virtual void | SetupObjectInitializer (FObjectInitializer &ObjectInitializer) const |
UObject * | GetDefaultObject (bool bCreateIfNeeded=true) const |
template<class T > | |
T * | GetDefaultObject () const |
UClass * | GetSuperClass () const |
FORCEINLINE size_t | GetMinAlignment () const |
virtual void | SetSuperStruct (UStruct *NewSuperStruct) override |
virtual void | InitPropertiesFromCustomList (uint8_t *DataPtr, const uint8_t *DefaultDataPtr) |
Public Member Functions inherited from Karma::UStruct | |
bool | IsChildOf (const UStruct *SomeBase) const |
UStruct * | GetSuperStruct () const |
FORCEINLINE size_t | GetPropertiesSize () const |
Public Member Functions inherited from Karma::UObject | |
UObject () | |
virtual void | FinishDestroy () |
virtual class UWorld * | GetWorld () const |
Returns what UWorld this object is contained within. | |
bool | IsValidChecked (const UObject *Test) |
virtual void | BeginDestroy () |
Called before destroying the object. This is called immediately upon deciding to destroy the object, to allow the object to begin an asynchronous cleanup process. | |
FORCEINLINE bool | Modify (bool bAlwaysMarkDirty=true) |
bool | IsSelected () const |
Test the selection state of a UObject. | |
Public Member Functions inherited from Karma::UObjectBase | |
UObjectBase (UClass *inClass, EObjectFlags inFlags, EInternalObjectFlags inInternalFlags, UObject *inOuter, const std::string &inName) | |
UPackage * | GetPackage () const |
UPackage * | GetExternalPackage () const |
bool | IsUnreachable () const |
FORCEINLINE void | SetInternalIndex (uint32_t StoreIndex) |
FORCEINLINE uint32_t | GetInterIndex () const |
void | MarkAsGarbage () |
void | ClearGarbage () |
FORCEINLINE const std::string & | GetName () const |
FORCEINLINE void | SetObjectName (const std::string &aName) |
FORCEINLINE UObject * | GetOuter () const |
UObject * | GetTypedOuter (UClass *Target) const |
template<typename T > | |
T * | GetTypedOuter () const |
bool | IsValidLowLevel () const |
template<typename OtherClassType > | |
FORCEINLINE bool | IsA (OtherClassType SomeBase) const |
FORCEINLINE UClass * | GetClass () const |
FORCEINLINE EObjectFlags | GetFlags () const |
FORCEINLINE void | SetFlags (EObjectFlags NewFlags) |
FORCEINLINE void | ClearFlags (EObjectFlags NewFlags) |
FORCEINLINE bool | HasAnyFlags (EObjectFlags FlagsToCheck) const |
FORCEINLINE bool | HasAnyInternalFlags (EInternalObjectFlags FlagsToCheck) const |
FORCEINLINE void | SetInternalFlags (EInternalObjectFlags FlagsToSet) const |
FORCEINLINE void | AddToRoot () |
Public Attributes | |
ClassConstructorType | m_ClassConstructor |
EClassFlags | m_ClassFlags |
Public Attributes inherited from Karma::UStruct | |
size_t | m_PropertiesSize |
size_t | m_MinAlignment |
Protected Member Functions | |
virtual UObject * | CreateDefaultObject () |
Protected Member Functions inherited from Karma::UObjectBase | |
FORCEINLINE void | SetFlagsTo (EObjectFlags NewFlags) |
Additional Inherited Members | |
Static Public Member Functions inherited from Karma::UObject | |
static const char * | StaticConfigName () |
Static Public Member Functions inherited from Karma::UObjectBase | |
static FORCEINLINE EInternalObjectFlags | FixGarbageOrPendingKillInternalObjectFlags (const EInternalObjectFlags InFlags) |
An object class.
Karma::UClass::UClass | ( | ) |
Constructors
Karma::UClass::UClass | ( | const std::string & | name, |
size_t | size, | ||
size_t | alignment, | ||
ClassConstructorType | inClassConstructor ) |
A useful constructor for StaticClass initialization
|
protectedvirtual |
Get the default object from the class, creating it if missing, if requested or under a few other circumstances
|
inline |
Get the default object from the class and cast to a particular type
|
inline |
Get the default object from the class
bCreateIfNeeded | if true (default) then the CDO is created if it is null |
|
overridevirtual |
Return a one line description of an object for viewing in the thumbnail view of the generic browser.
Reimplemented from Karma::UObject.
|
inline |
Alignment of structure in memory, structure will be at least this large
|
inline |
Returns parent class, the parent of a Class is always another class
|
inline |
Used to safely check whether the passed in flag is set.
FlagsToCheck | Class flag(s) to check for |
|
inlinevirtual |
Helper method to assist with initializing object properties from an explicit list.
InStruct | the current scope for which the given property list applies |
DataPtr | destination address (where to start copying values to) |
DefaultDataPtr | source address (where to start copying the defaults data from) |
|
overridevirtual |
Sets the super struct pointer and updates hash information as necessary. Note that this is not sufficient to actually reparent a struct, it simply sets a pointer.
Reimplemented from Karma::UStruct.
|
inlinevirtual |
Allows class to provide data to the object initializer that can affect how native class subobjects are created.
ClassConstructorType Karma::UClass::m_ClassConstructor |
The required type for the outer of instances of this class
EClassFlags Karma::UClass::m_ClassFlags |
Class flags; See EClassFlags for more information