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

#include <RenderGraphAllocator.h>

Public Member Functions

 ForElementType ()=default
 
void MoveToEmpty (ForElementType &Other)
 
ElementType * GetAllocation () const
 
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

◆ ForElementType()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::ForElementType ( )
default

Member Function Documentation

◆ CalculateSlackGrow()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
SizeType TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::CalculateSlackGrow ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackReserve()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
SizeType TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::CalculateSlackReserve ( SizeType  NewMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackShrink()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
SizeType TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::CalculateSlackShrink ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocatedSize()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
SIZE_T TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::GetAllocatedSize ( SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocation()

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

◆ GetInitialCapacity()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
SizeType TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::GetInitialCapacity ( ) const
inline

◆ HasAllocation()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
bool TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::HasAllocation ( ) const
inline

◆ MoveToEmpty()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
void TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::MoveToEmpty ( ForElementType< ElementType > &  Other)
inline

◆ ResizeAllocation()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
template<typename ElementType >
void TRDGArrayAllocator< Alignment >::ForElementType< ElementType >::ResizeAllocation ( SizeType  CurrentNum,
SizeType  NewMax,
SIZE_T  NumBytesPerElement 
)
inline

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