UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForElementType< ElementType > Class Template Reference

#include <Allocator.h>

+ Inheritance diagram for uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForElementType< ElementType >:

Public Member Functions

ULANG_FORCEINLINE ForElementType (EDefaultInit)
 
ULANG_FORCEINLINE ForElementType (const RawAllocatorType &Allocator)
 
ULANG_FORCEINLINE ForElementType (AllocatorArgsType &&... AllocatorArgs)
 
ULANG_FORCEINLINE ElementType * GetAllocation () const
 
- Public Member Functions inherited from uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForAnyElementType
ULANG_FORCEINLINE ForAnyElementType (EDefaultInit)
 
ULANG_FORCEINLINE ForAnyElementType (const RawAllocatorType &Allocator)
 
ULANG_FORCEINLINE ForAnyElementType (AllocatorArgsType... AllocatorArgs)
 
ULANG_FORCEINLINE void MoveToEmpty (ForAnyElementType &Other)
 
ULANG_FORCEINLINE ~ForAnyElementType ()
 
ULANG_FORCEINLINE SScriptContainerElementGetAllocation () const
 
ULANG_FORCEINLINE const RawAllocatorTypeGetRawAllocator () const
 
ULANG_FORCEINLINE void ResizeAllocation (int32_t PreviousNumElements, int32_t NumElements, size_t NumBytesPerElement)
 
ULANG_FORCEINLINE int32_t CalculateSlackReserve (int32_t NumElements, int32_t NumBytesPerElement) const
 
ULANG_FORCEINLINE int32_t CalculateSlackShrink (int32_t NumElements, int32_t NumAllocatedElements, int32_t NumBytesPerElement) const
 
ULANG_FORCEINLINE int32_t CalculateSlackGrow (int32_t NumElements, int32_t NumAllocatedElements, int32_t NumBytesPerElement) const
 
ULANG_FORCEINLINE size_t GetAllocatedSize (int32_t NumAllocatedElements, size_t NumBytesPerElement) const
 
ULANG_FORCEINLINE bool HasAllocation ()
 

Detailed Description

template<class InRawAllocatorType, typename... AllocatorArgsType>
template<typename ElementType>
class uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForElementType< ElementType >

A class that may be used when NeedsElementType=true is specified. If NeedsElementType=false, then this must be present but will not be used, and so can simply be a typedef to void

Constructor & Destructor Documentation

◆ ForElementType() [1/3]

template<class InRawAllocatorType , typename... AllocatorArgsType>
template<typename ElementType >
ULANG_FORCEINLINE uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForElementType< ElementType >::ForElementType ( EDefaultInit  )
inline

◆ ForElementType() [2/3]

template<class InRawAllocatorType , typename... AllocatorArgsType>
template<typename ElementType >
ULANG_FORCEINLINE uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForElementType< ElementType >::ForElementType ( const RawAllocatorType Allocator)
inline

◆ ForElementType() [3/3]

template<class InRawAllocatorType , typename... AllocatorArgsType>
template<typename ElementType >
ULANG_FORCEINLINE uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForElementType< ElementType >::ForElementType ( AllocatorArgsType &&...  AllocatorArgs)
inline

Member Function Documentation

◆ GetAllocation()

template<class InRawAllocatorType , typename... AllocatorArgsType>
template<typename ElementType >
ULANG_FORCEINLINE ElementType * uLang::TDefaultElementAllocator< InRawAllocatorType, AllocatorArgsType >::ForElementType< ElementType >::GetAllocation ( ) const
inline

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