UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TSizedHeapAllocator< IndexSize, BaseMallocType >::ForElementType< ElementType > Class Template Reference

#include <ContainerAllocationPolicies.h>

+ Inheritance diagram for TSizedHeapAllocator< IndexSize, BaseMallocType >::ForElementType< ElementType >:

Public Member Functions

 ForElementType ()=default
 
consteval ForElementType (EConstEval)
 
UE_FORCEINLINE_HINT ElementType * GetAllocation () const
 
- Public Member Functions inherited from TSizedHeapAllocator< IndexSize, BaseMallocType >::ForAnyElementType
constexpr ForAnyElementType ()
 
consteval ForAnyElementType (EConstEval)
 
template<typename OtherAllocator >
UE_FORCEINLINE_HINT void MoveToEmptyFromOtherAllocator (typename OtherAllocator::ForAnyElementType &Other)
 
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)
 
void ResizeAllocation (SizeType CurrentNum, SizeType NewMax, SIZE_T NumBytesPerElement, uint32 AlignmentOfElement)
 
UE_FORCEINLINE_HINT SizeType CalculateSlackReserve (SizeType NewMax, SIZE_T NumBytesPerElement) const
 
UE_FORCEINLINE_HINT SizeType CalculateSlackReserve (SizeType NewMax, SIZE_T NumBytesPerElement, uint32 AlignmentOfElement) const
 
UE_FORCEINLINE_HINT SizeType CalculateSlackShrink (SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement) const
 
UE_FORCEINLINE_HINT SizeType CalculateSlackShrink (SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement, uint32 AlignmentOfElement) const
 
UE_FORCEINLINE_HINT SizeType CalculateSlackGrow (SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement) const
 
UE_FORCEINLINE_HINT SizeType CalculateSlackGrow (SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement, uint32 AlignmentOfElement) const
 
SIZE_T GetAllocatedSize (SizeType CurrentMax, SIZE_T NumBytesPerElement) const
 
bool HasAllocation () const
 
constexpr SizeType GetInitialCapacity () const
 

Constructor & Destructor Documentation

◆ ForElementType() [1/2]

template<int IndexSize, typename BaseMallocType = FMemory>
template<typename ElementType >
TSizedHeapAllocator< IndexSize, BaseMallocType >::ForElementType< ElementType >::ForElementType ( )
default

Default constructor.

◆ ForElementType() [2/2]

template<int IndexSize, typename BaseMallocType = FMemory>
template<typename ElementType >
consteval TSizedHeapAllocator< IndexSize, BaseMallocType >::ForElementType< ElementType >::ForElementType ( EConstEval  )
inlineexplicit

Member Function Documentation

◆ GetAllocation()

template<int IndexSize, typename BaseMallocType = FMemory>
template<typename ElementType >
UE_FORCEINLINE_HINT ElementType * TSizedHeapAllocator< IndexSize, BaseMallocType >::ForElementType< ElementType >::GetAllocation ( ) const
inline

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