Low level implementation of UObject, should not be used directly in game code
更多...
#include <UObjectBase.h>
|
| 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
|
| |
|
|
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
|
| |
|
| 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
- 参数
-
| InFlags | RF_Flags to assign |
◆ UObjectBase() [2/2]
| UObjectBase::UObjectBase |
( |
UClass * |
InClass, |
|
|
EObjectFlags |
InFlags, |
|
|
EInternalObjectFlags |
InInternalFlags, |
|
|
UObject * |
InOuter, |
|
|
FName |
InName |
|
) |
| |
Constructor used by StaticAllocateObject
- 参数
-
| InClass | non NULL, this gives the class of the new object, if known at this time |
| InFlags | RF_Flags to assign |
| InInternalFlags | EInternalObjectFlags to assign |
| InOuter | outer for this object |
| InName | name 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
- 参数
-
| UClassStaticClass | Now 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.
- 参数
-
| bRecursive | true 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.
- 参数
-
| NewName | new name for this object |
| NewOuter | new outer for this object, if NULL, outer will be unchanged |
◆ SetFlagsTo()
| FORCEINLINE void UObjectBase::SetFlagsTo |
( |
EObjectFlags |
NewFlags | ) |
|
|
inlineprotected |
Set the object flags directly
该类的文档由以下文件生成: