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

#include <ContainerAllocationPolicies.h>

Public Member Functions

 ForElementType ()
 
 ~ForElementType ()
 
UE_FORCEINLINE_HINT void MoveToEmpty (ForElementType &Other)
 
UE_FORCEINLINE_HINT ElementType * GetAllocation () 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
 
UE_FORCEINLINE_HINT bool HasAllocation () const
 
SizeType GetInitialCapacity () const
 

Constructor & Destructor Documentation

◆ ForElementType()

template<uint32 NumInlineElements>
template<typename ElementType >
TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::ForElementType ( )
inline

Default constructor.

◆ ~ForElementType()

template<uint32 NumInlineElements>
template<typename ElementType >
TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::~ForElementType ( )
inline

Member Function Documentation

◆ CalculateSlackGrow()

template<uint32 NumInlineElements>
template<typename ElementType >
UE_FORCEINLINE_HINT SizeType TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::CalculateSlackGrow ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackReserve()

template<uint32 NumInlineElements>
template<typename ElementType >
UE_FORCEINLINE_HINT SizeType TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::CalculateSlackReserve ( SizeType  NewMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackShrink()

template<uint32 NumInlineElements>
template<typename ElementType >
UE_FORCEINLINE_HINT SizeType TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::CalculateSlackShrink ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocatedSize()

template<uint32 NumInlineElements>
template<typename ElementType >
SIZE_T TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::GetAllocatedSize ( SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocation()

template<uint32 NumInlineElements>
template<typename ElementType >
UE_FORCEINLINE_HINT ElementType * TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::GetAllocation ( ) const
inline

◆ GetInitialCapacity()

template<uint32 NumInlineElements>
template<typename ElementType >
SizeType TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::GetInitialCapacity ( ) const
inline

◆ HasAllocation()

template<uint32 NumInlineElements>
template<typename ElementType >
UE_FORCEINLINE_HINT bool TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::HasAllocation ( ) const
inline

◆ MoveToEmpty()

template<uint32 NumInlineElements>
template<typename ElementType >
UE_FORCEINLINE_HINT void TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::MoveToEmpty ( ForElementType< ElementType > &  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 NumInlineElements>
template<typename ElementType >
void TNonRelocatableInlineAllocator< NumInlineElements >::ForElementType< ElementType >::ResizeAllocation ( SizeType  CurrentNum,
SizeType  NewMax,
SIZE_T  NumBytesPerElement 
)
inline

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