UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TAlignedHeapAllocator< Alignment >::ForAnyElementType Class Reference

#include <ContainerAllocationPolicies.h>

+ Inheritance diagram for TAlignedHeapAllocator< Alignment >::ForAnyElementType:

Public Member Functions

 ForAnyElementType ()
 
UE_FORCEINLINE_HINT void MoveToEmpty (ForAnyElementType &Other)
 
UE_FORCEINLINE_HINT ~ForAnyElementType ()
 
UE_FORCEINLINE_HINT FScriptContainerElementGetAllocation () const
 
void ResizeAllocation (SizeType CurrentNum, SizeType NewMax, SIZE_T NumBytesPerElement)
 
UE_FORCEINLINE_HINT SizeType CalculateSlackReserve (SizeType NewMax, SIZE_T NumBytesPerElement) const
 
UE_FORCEINLINE_HINT SizeType CalculateSlackShrink (SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement) const
 
UE_FORCEINLINE_HINT 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()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
TAlignedHeapAllocator< Alignment >::ForAnyElementType::ForAnyElementType ( )
inline

Default constructor.

◆ ~ForAnyElementType()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT TAlignedHeapAllocator< Alignment >::ForAnyElementType::~ForAnyElementType ( )
inline

Destructor.

Member Function Documentation

◆ CalculateSlackGrow()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT SizeType TAlignedHeapAllocator< Alignment >::ForAnyElementType::CalculateSlackGrow ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackReserve()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT SizeType TAlignedHeapAllocator< Alignment >::ForAnyElementType::CalculateSlackReserve ( SizeType  NewMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackShrink()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT SizeType TAlignedHeapAllocator< Alignment >::ForAnyElementType::CalculateSlackShrink ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocatedSize()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
SIZE_T TAlignedHeapAllocator< Alignment >::ForAnyElementType::GetAllocatedSize ( SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocation()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT FScriptContainerElement * TAlignedHeapAllocator< Alignment >::ForAnyElementType::GetAllocation ( ) const
inline

◆ GetInitialCapacity()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
SizeType TAlignedHeapAllocator< Alignment >::ForAnyElementType::GetInitialCapacity ( ) const
inline

◆ HasAllocation()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
bool TAlignedHeapAllocator< Alignment >::ForAnyElementType::HasAllocation ( ) const
inline

◆ MoveToEmpty()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
UE_FORCEINLINE_HINT void TAlignedHeapAllocator< Alignment >::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()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
void TAlignedHeapAllocator< Alignment >::ForAnyElementType::ResizeAllocation ( SizeType  CurrentNum,
SizeType  NewMax,
SIZE_T  NumBytesPerElement 
)
inline

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