UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAnsiAllocator::ForAnyElementType Class Reference

#include <AnsiAllocator.h>

+ Inheritance diagram for FAnsiAllocator::ForAnyElementType:

Public Member Functions

 ForAnyElementType ()
 
FORCEINLINE void MoveToEmpty (ForAnyElementType &Other)
 
FORCEINLINE ~ForAnyElementType ()
 
FORCEINLINE FScriptContainerElementGetAllocation () const
 
CORE_API void ResizeAllocation (SizeType CurrentNum, SizeType NewMax, SIZE_T NumBytesPerElement)
 
SizeType CalculateSlackReserve (SizeType NewMax, SIZE_T NumBytesPerElement) const
 
SizeType CalculateSlackShrink (SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement) const
 
SizeType CalculateSlackGrow (SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement) const
 
SIZE_T GetAllocatedSize (SizeType CurrentMax, SIZE_T NumBytesPerElement) const
 
bool HasAllocation () const
 
SizeType GetInitialCapacity () const
 

Constructor & Destructor Documentation

◆ ForAnyElementType()

FAnsiAllocator::ForAnyElementType::ForAnyElementType ( )
inline

Default constructor.

◆ ~ForAnyElementType()

FORCEINLINE FAnsiAllocator::ForAnyElementType::~ForAnyElementType ( )
inline

Destructor.

Member Function Documentation

◆ CalculateSlackGrow()

SizeType FAnsiAllocator::ForAnyElementType::CalculateSlackGrow ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackReserve()

SizeType FAnsiAllocator::ForAnyElementType::CalculateSlackReserve ( SizeType  NewMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackShrink()

SizeType FAnsiAllocator::ForAnyElementType::CalculateSlackShrink ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocatedSize()

SIZE_T FAnsiAllocator::ForAnyElementType::GetAllocatedSize ( SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocation()

FORCEINLINE FScriptContainerElement * FAnsiAllocator::ForAnyElementType::GetAllocation ( ) const
inline

◆ GetInitialCapacity()

SizeType FAnsiAllocator::ForAnyElementType::GetInitialCapacity ( ) const
inline

◆ HasAllocation()

bool FAnsiAllocator::ForAnyElementType::HasAllocation ( ) const
inline

◆ MoveToEmpty()

FORCEINLINE void FAnsiAllocator::ForAnyElementType::MoveToEmpty ( ForAnyElementType Other)
inline

Moves the state of another allocator into this one. Assumes that the allocator is currently empty, i.e. memory may be allocated but any existing elements have already been destructed (if necessary).

Parameters
Other- The allocator to move the state from. This allocator should be left in a valid empty state.

◆ ResizeAllocation()

void FAnsiAllocator::ForAnyElementType::ResizeAllocation ( SizeType  CurrentNum,
SizeType  NewMax,
SIZE_T  NumBytesPerElement 
)

The documentation for this class was generated from the following files: