UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMemoryImageAllocator< Alignment >::ForElementType< ElementType > Class Template Reference

#include <MemoryImage.h>

+ Inheritance diagram for TMemoryImageAllocator< Alignment >::ForElementType< ElementType >:

Public Member Functions

 ForElementType ()
 
UE_FORCEINLINE_HINT ElementType * GetAllocation () const
 
- Public Member Functions inherited from TMemoryImageAllocator< Alignment >::ForAnyElementType
 ForAnyElementType ()=default
 
UE_FORCEINLINE_HINT SizeType GetInitialCapacity () const
 
UE_FORCEINLINE_HINT int32 CalculateSlackReserve (int32 NewMax, int32 NumBytesPerElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackReserve (int32 NewMax, int32 NumBytesPerElement, uint32 AlignmentOfElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackShrink (int32 NewMax, int32 CurrentMax, int32 NumBytesPerElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackShrink (int32 NewMax, int32 CurrentMax, int32 NumBytesPerElement, uint32 AlignmentOfElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackGrow (int32 NewMax, int32 CurrentMax, int32 NumBytesPerElement) const
 
UE_FORCEINLINE_HINT int32 CalculateSlackGrow (int32 NewMax, int32 CurrentMax, int32 NumBytesPerElement, uint32 AlignmentOfElement) const
 
UE_FORCEINLINE_HINT void ResizeAllocation (int32 CurrentNum, int32 NewMax, SIZE_T NumBytesPerElement)
 
UE_FORCEINLINE_HINT void ResizeAllocation (int32 CurrentNum, int32 NewMax, SIZE_T NumBytesPerElement, uint32 AlignmentOfElement)
 
UE_FORCEINLINE_HINT void WriteMemoryImage (FMemoryImageWriter &Writer, const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements) const
 
- Public Member Functions inherited from FMemoryImageAllocatorBase
 FMemoryImageAllocatorBase ()=default
 
CORE_API void MoveToEmpty (FMemoryImageAllocatorBase &Other)
 
CORE_API ~FMemoryImageAllocatorBase ()
 
UE_FORCEINLINE_HINT FScriptContainerElementGetAllocation () const
 
UE_FORCEINLINE_HINT SIZE_T GetAllocatedSize (int32 CurrentMax, SIZE_T NumBytesPerElement) const
 
UE_FORCEINLINE_HINT bool HasAllocation ()
 
UE_FORCEINLINE_HINT int64 GetFrozenOffsetFromThis () const
 
CORE_API void ResizeAllocation (int32 PreviousNumElements, int32 NumElements, SIZE_T NumBytesPerElement, uint32 Alignment)
 
CORE_API void WriteMemoryImage (FMemoryImageWriter &Writer, const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, uint32 Alignment) const
 
CORE_API void ToString (const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, int32 MaxAllocatedElements, const FPlatformTypeLayoutParameters &LayoutParams, FMemoryToStringContext &OutContext) const
 
CORE_API void CopyUnfrozen (const FMemoryUnfreezeContent &Context, const FTypeLayoutDesc &TypeDesc, int32 NumAllocatedElements, void *Dst) const
 

Constructor & Destructor Documentation

◆ ForElementType()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
TMemoryImageAllocator< Alignment >::ForElementType< ElementType >::ForElementType ( )
inline

Member Function Documentation

◆ GetAllocation()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
UE_FORCEINLINE_HINT ElementType * TMemoryImageAllocator< Alignment >::ForElementType< ElementType >::GetAllocation ( ) const
inline

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