engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 静态 Public 成员函数 | Protected 成员函数 | 友元 | 所有成员列表
UObjectBase类 参考

Low level implementation of UObject, should not be used directly in game code 更多...

#include <UObjectBase.h>

+ 类 UObjectBase 继承关系图:

Public 成员函数

FORCENOINLINE void AtomicallyClearFlags (EObjectFlags FlagsToClear)
 Atomically clears the specified flags. 更多...
 
FORCENOINLINE void AtomicallySetFlags (EObjectFlags FlagsToAdd)
 Atomically adds the specified flags. 更多...
 
FORCEINLINE UClass * GetClass () const
 Returns the UClass that defines the fields of this object
 
UPackage * GetExternalPackage () const
 Returns the external UPackage associated with this object, if any
 
UPackage * GetExternalPackageInternal () const
 Returns the external UPackage for this object, if any, NOT THREAD SAFE, used by internal gc reference collecting.
 
FORCEINLINE EObjectFlags GetFlags () const
 Retrieve the object flags directly 更多...
 
FORCEINLINE FName GetFName () const
 Returns the logical name of this object
 
FORCEINLINE UObject * GetOuter () const
 Returns the UObject this object resides in
 
FORCEINLINE uint32 GetUniqueID () const
 Returns the unique ID of the object...these are reused so it is only unique while the object is alive. 更多...
 
bool IsValidLowLevel () const
 Checks to see if the object appears to be valid 更多...
 
bool IsValidLowLevelFast (bool bRecursive=true) const
 Faster version of IsValidLowLevel. 更多...
 
void SetExternalPackage (UPackage *InPackage)
 Associate an external package directly to this object.
 
 UObjectBase (UClass *InClass, EObjectFlags InFlags, EInternalObjectFlags InInternalFlags, UObject *InOuter, FName InName)
 Constructor used by StaticAllocateObject 更多...
 
virtual ~UObjectBase ()
 Final destructor, removes the object from the object array, and indirectly, from any annotations
 

静态 Public 成员函数

static void EmitBaseReferences (UClass *RootClass)
 Emit GC tokens for UObjectBase, this might be UObject::StaticClass or Default__Class
 
static FString RemoveClassPrefix (const TCHAR *ClassName)
 Removes the class prefix from the given string
 

Protected 成员函数

virtual void DeferredRegister (UClass *UClassStaticClass, const TCHAR *PackageName, const TCHAR *Name)
 Convert a boot-strap registered class into a real one, add to uobject array, etc 更多...
 
void LowLevelRename (FName NewName, UObject *NewOuter=NULL)
 Just change the FName and Outer and rehash into name hash tables. 更多...
 
void Register (const TCHAR *PackageName, const TCHAR *Name)
 Enqueue the registration for this object.
 
virtual void RegisterDependencies ()
 Force any base classes to be registered first
 
FORCEINLINE void SetFlagsTo (EObjectFlags NewFlags)
 Set the object flags directly 更多...
 
 UObjectBase (EObjectFlags InFlags)
 Constructor used for bootstrapping 更多...
 

友元

class UObjectBaseUtility
 
COREUOBJECT_API void UObjectForceRegistration (UObjectBase *Object, bool bCheckForModuleRelease)
 Force a pending registrant to register now instead of in the natural order
 

详细描述

Low level implementation of UObject, should not be used directly in game code

构造及析构函数说明

◆ UObjectBase() [1/2]

UObjectBase::UObjectBase ( EObjectFlags  InFlags)
protected

Constructor used for bootstrapping

参数
InFlagsRF_Flags to assign

◆ UObjectBase() [2/2]

UObjectBase::UObjectBase ( UClass *  InClass,
EObjectFlags  InFlags,
EInternalObjectFlags  InInternalFlags,
UObject *  InOuter,
FName  InName 
)

Constructor used by StaticAllocateObject

参数
InClassnon NULL, this gives the class of the new object, if known at this time
InFlagsRF_Flags to assign
InInternalFlagsEInternalObjectFlags to assign
InOuterouter for this object
InNamename of the new object

成员函数说明

◆ AtomicallyClearFlags()

FORCENOINLINE void UObjectBase::AtomicallyClearFlags ( EObjectFlags  FlagsToClear)
inline

Atomically clears the specified flags.

Do not use unless you know what you are doing. Designed to be used only by parallel GC and UObject loading thread.

◆ AtomicallySetFlags()

FORCENOINLINE void UObjectBase::AtomicallySetFlags ( EObjectFlags  FlagsToAdd)
inline

Atomically adds the specified flags.

Do not use unless you know what you are doing. Designed to be used only by parallel GC and UObject loading thread.

◆ DeferredRegister()

virtual void UObjectBase::DeferredRegister ( UClass *  UClassStaticClass,
const TCHAR *  PackageName,
const TCHAR *  Name 
)
protectedvirtual

Convert a boot-strap registered class into a real one, add to uobject array, etc

参数
UClassStaticClassNow that it is known, fill in UClass::StaticClass() as the class

被 UClass 重载.

◆ GetFlags()

FORCEINLINE EObjectFlags UObjectBase::GetFlags ( ) const
inline

Retrieve the object flags directly

返回
Flags for this object

◆ GetUniqueID()

FORCEINLINE uint32 UObjectBase::GetUniqueID ( ) const
inline

Returns the unique ID of the object...these are reused so it is only unique while the object is alive.

Useful as a tag.

◆ IsValidLowLevel()

bool UObjectBase::IsValidLowLevel ( ) const

Checks to see if the object appears to be valid

返回
true if this appears to be a valid object

◆ IsValidLowLevelFast()

bool UObjectBase::IsValidLowLevelFast ( bool  bRecursive = true) const

Faster version of IsValidLowLevel.

Checks to see if the object appears to be valid by checking pointers and their alignment. Name and InternalIndex checks are less accurate than IsValidLowLevel.

参数
bRecursivetrue if the Class pointer should be checked with IsValidLowLevelFast
返回
true if this appears to be a valid object

◆ LowLevelRename()

void UObjectBase::LowLevelRename ( FName  NewName,
UObject *  NewOuter = NULL 
)
protected

Just change the FName and Outer and rehash into name hash tables.

For use by higher level rename functions.

参数
NewNamenew name for this object
NewOuternew outer for this object, if NULL, outer will be unchanged

◆ SetFlagsTo()

FORCEINLINE void UObjectBase::SetFlagsTo ( EObjectFlags  NewFlags)
inlineprotected

Set the object flags directly


该类的文档由以下文件生成: