FUObjectAllocator

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectAllocator.h

Include

#include "UObject/UObjectAllocator.h"

Syntax

class FUObjectAllocator

Constructors

Name Description

Public function

FUObjectAllocator()

Constructor, initializes to no permanent object pool

Functions

Name Description

Public function

void

 

AllocatePermanentObjectPool

(
    int32 InPermanentObjectPoolSize
)

Allocates and initializes the permanent object pool

Public function

UObjectBase ...

 

AllocateUObject

(
    int32 Size,
    int32 Alignment,
    bool bAllowPermanent
)

Allocates a UObjectBase from the free store or the permanent object pool

Public function

void

 

BootMessage()

Prints a debugf message to allow tuning

Public function Const

void

 

FreeUObject

(
    UObjectBase* Object
)

Returns a UObjectBase to the free store, unless it is in the permanent object pool

Public function Const

bool

 

ResidesInPermanentPool

(
    const UObjectBase* Object
)

Checks whether object is part of permanent object pool.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss