Navigation
Unreal Engine C++ API Reference > Runtime > CoreUObject > UObject
References
Module | CoreUObject |
Header | /Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectArray.h |
Include | #include "UObject/UObjectArray.h" |
Syntax
class FUObjectArray
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Constructor, initializes to no permanent object pool |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddUObjectCreateListener
(
FUObjectCreateListener* Listener |
Adds a new listener for object creationAdds a creation listener |
![]() |
void | AddUObjectDeleteListener
(
FUObjectDeleteListener* Listener |
Adds a new listener for object deletionChecks whether object is part of permanent object pool. |
![]() |
void | AllocateObjectPool
(
int32 MaxUObjects, |
Allocates and initializes the permanent object pool |
![]() |
int32 | AllocateSerialNumber
(
int32 Index |
Given a UObject index return the serial number. |
![]() |
void | AllocateUObjectIndex
(
UObjectBase* Object, |
Adds a uobject to the global array which is used for uobject iteration |
![]() |
void | After the initial load, this closes the disregard pool so that new object are GC-able | |
![]() |
void | Disables the disregard for GC optimization. | |
![]() ![]() |
bool | Indicates if the disregard for GC optimization is active | |
![]() ![]() |
void | ||
![]() |
void | FreeUObjectIndex
(
UObjectBase* Object |
Returns a UObject index top to the global uobject array |
![]() ![]() |
int64 | ||
![]() ![]() |
int32 | Returns the index of the first object outside of the disregard for GC pool | |
![]() ![]() |
int32 | Returns the estimated number of object indices available for allocation | |
![]() ![]() |
int32 | Returns the estimated number of object indices available for allocation | |
![]() ![]() |
int32 | Returns the size of the global UObject array, some of these might be unused | |
![]() ![]() |
int32 | Returns the number of actual object indices that are claimed (the total size of the global object array minus the number of available object array elements | |
![]() ![]() |
int32 | Returns the size of the global UObject array minus the number of permanent objects | |
![]() ![]() |
int32 | Returns the number of permanent objects | |
![]() ![]() |
const TUObjectArray & | ||
![]() |
TUObjectArray & | INTERNAL USE ONLY: gets the internal FUObjectItem array | |
![]() |
int32 | GetSerialNumber
(
int32 Index |
Given a UObject index return the serial number. |
![]() |
FUObjectItem * | IndexToObject
(
int32 Index, |
|
![]() |
FUObjectItem * | IndexToObject
(
int32 Index |
Returns the UObject corresponding to index. |
![]() |
FUObjectItem * | IndexToObjectUnsafeForGC
(
int32 Index |
|
![]() |
FUObjectItem * | IndexToValidObject
(
int32 Index, |
|
![]() |
bool | IsDisregardForGC
(
const UObjectBase* Object |
Returns true if this object is "disregard for GC"...same results as the legacy RF_DisregardForGC flag |
![]() ![]() |
bool | Returns true if the disregard for GC pool is open | |
![]() |
bool | IsStale
(
int32 Index, |
|
![]() |
bool | IsStale
(
FUObjectItem* ObjectItem, |
|
![]() |
bool | IsValid
(
int32 Index, |
|
![]() ![]() |
bool | IsValid
(
const UObjectBase* Object |
Checks if a UObject pointer is valid |
![]() |
bool | IsValid
(
FUObjectItem* ObjectItem, |
|
![]() ![]() |
bool | IsValidIndex
(
const UObjectBase* Object |
Checks if the object index is valid. |
![]() ![]() |
void | Locks the internal object array mutex | |
![]() ![]() |
int32 |
ObjectToIndex
(
const UObjectBase* Object |
Returns the index of a UObject. |
![]() |
FUObjectItem * |
ObjectToObjectItem
(
const UObjectBase* Object |
|
![]() |
void | If there's enough slack in the disregard pool, we can re-open it and keep adding objects to it | |
![]() |
void | RemoveObjectFromDeleteListeners
(
UObjectBase* Object |
Removes an object from delete listeners |
![]() |
void | RemoveUObjectCreateListener
(
FUObjectCreateListener* Listener |
Removes a listener for object creation |
![]() |
void | RemoveUObjectDeleteListener
(
FUObjectDeleteListener* Listener |
Removes a listener for object deletionremoves a listener for object deletion |
![]() |
void | Clears some internal arrays to get rid of false memory leaks | |
![]() ![]() |
void | Unlocks the internal object array mutex |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FUObjectCreateListener | Base class for UObjectBase create class listeners | |
![]() |
FUObjectDeleteListener | Base class for UObjectBase delete class listeners | |
![]() |
TIterator | Low level iterator. |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
ESerialNumberConstants |
Typedefs
Name | Description |
---|---|
TUObjectArray | Typedef TStaticIndirectArrayThreadSafeRead<UObjectBase, 8 * 1024 * 1024 /* Max 8M UObjects */, 16384 /* allocated in 64K/128K chunks */ > TUObjectArray; |