ForAnyElementType

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

TSizedHeapAllocator::ForAnyElementType

TSizedHeapAllocator::ForElementType

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/ContainerAllocationPolicies.h

Include

#include "Containers/ContainerAllocationPolicies.h"

Syntax

class ForAnyElementType

Constructors

Name Description

Public function

ForAnyElementType()

Default constructor.

Destructors

Name Description

Public function

~ForAnyElementType()

Destructor.

Functions

Name Description

Public function Const

SizeType

 

CalculateSlackGrow

(
    SizeType NumElements,
    SizeType NumAllocatedElements,
    SIZE_T NumBytesPerElement
)

Public function Const

SizeType

 

CalculateSlackGrow

(
    SizeType NumElements,
    SizeType NumAllocatedElements,
    SIZE_T NumBytesPerElement,
    uint32 AlignmentOfElement
)

Public function Const

SizeType

 

CalculateSlackReserve

(
    SizeType NumElements,
    SIZE_T NumBytesPerElement
)

Public function Const

SizeType

 

CalculateSlackReserve

(
    SizeType NumElements,
    SIZE_T NumBytesPerElement,
    uint32 AlignmentOfElement
)

Public function Const

SizeType

 

CalculateSlackShrink

(
    SizeType NumElements,
    SizeType NumAllocatedElements,
    SIZE_T NumBytesPerElement
)

Public function Const

SizeType

 

CalculateSlackShrink

(
    SizeType NumElements,
    SizeType NumAllocatedElements,
    SIZE_T NumBytesPerElement,
    uint32 AlignmentOfElement
)

Public function Const

SIZE_T

 

GetAllocatedSize

(
    SizeType NumAllocatedElements,
    SIZE_T NumBytesPerElement
)

Public function Const

FScriptConta...

 

GetAllocation()

Public function Const

SizeType

 

GetInitialCapacity()

Public function Const

bool

 

HasAllocation()

Public function

void

 

MoveToEmpty

(
    ForAnyElementType& Other
)

Moves the state of another allocator into this one.

Public function

void

 

MoveToEmptyFromOtherAllocator

(
    typename OtherAllocator::ForAnyElem...
)

Moves the state of another allocator into this one.

Public function

void

 

ResizeAllocation

(
    SizeType PreviousNumElements,
    SizeType NumElements,
    SIZE_T NumBytesPerElement
)

Public function

void

 

ResizeAllocation

(
    SizeType PreviousNumElements,
    SizeType NumElements,
    SIZE_T NumBytesPerElement,
    uint32 AlignmentOfElement
)