UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TMaybeMappedAllocator< Alignment >::ForAnyElementType Class Reference

#include <AnimCompressionTypes.h>

+ Inheritance diagram for TMaybeMappedAllocator< Alignment >::ForAnyElementType:

Public Member Functions

 ForAnyElementType ()
 
void MoveToEmpty (ForAnyElementType &Other)
 
 ~ForAnyElementType ()
 
FScriptContainerElementGetAllocation () 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
 
void AcceptFileMapping (IMappedFileHandle *InMappedHandle, IMappedFileRegion *InMappedRegion, void *MallocPtr)
 
bool IsMapped () const
 

Constructor & Destructor Documentation

◆ ForAnyElementType()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
TMaybeMappedAllocator< Alignment >::ForAnyElementType::ForAnyElementType ( )
inline

Default constructor.

◆ ~ForAnyElementType()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
TMaybeMappedAllocator< Alignment >::ForAnyElementType::~ForAnyElementType ( )
inline

Destructor.

Member Function Documentation

◆ AcceptFileMapping()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
void TMaybeMappedAllocator< Alignment >::ForAnyElementType::AcceptFileMapping ( IMappedFileHandle InMappedHandle,
IMappedFileRegion InMappedRegion,
void MallocPtr 
)
inline

◆ CalculateSlackGrow()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
SizeType TMaybeMappedAllocator< Alignment >::ForAnyElementType::CalculateSlackGrow ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackReserve()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
SizeType TMaybeMappedAllocator< Alignment >::ForAnyElementType::CalculateSlackReserve ( SizeType  NewMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ CalculateSlackShrink()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
SizeType TMaybeMappedAllocator< Alignment >::ForAnyElementType::CalculateSlackShrink ( SizeType  NewMax,
SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocatedSize()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
SIZE_T TMaybeMappedAllocator< Alignment >::ForAnyElementType::GetAllocatedSize ( SizeType  CurrentMax,
SIZE_T  NumBytesPerElement 
) const
inline

◆ GetAllocation()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
FScriptContainerElement * TMaybeMappedAllocator< Alignment >::ForAnyElementType::GetAllocation ( ) const
inline

◆ GetInitialCapacity()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
SizeType TMaybeMappedAllocator< Alignment >::ForAnyElementType::GetInitialCapacity ( ) const
inline

◆ HasAllocation()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
bool TMaybeMappedAllocator< Alignment >::ForAnyElementType::HasAllocation ( ) const
inline

◆ IsMapped()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
bool TMaybeMappedAllocator< Alignment >::ForAnyElementType::IsMapped ( ) const
inline

◆ MoveToEmpty()

template<uint32 Alignment = DEFAULT_ALIGNMENT>
void TMaybeMappedAllocator< Alignment >::ForAnyElementType::MoveToEmpty ( ForAnyElementType 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 Alignment = DEFAULT_ALIGNMENT>
template ENGINE_API FORCENOINLINE void TMaybeMappedAllocator< Alignment >::ForAnyElementType::ResizeAllocation ( SizeType  CurrentNum,
SizeType  NewMax,
SIZE_T  NumBytesPerElement 
)
inline

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