86 return CurrentMax * NumBytesPerElement;
107 template<
typename ElementType>
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT SizeType DefaultCalculateSlackReserve(SizeType NewMax, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT)
Definition ContainerAllocationPolicies.h:223
UE_FORCEINLINE_HINT SizeType DefaultCalculateSlackShrink(SizeType NewMax, SizeType CurrentMax, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT)
Definition ContainerAllocationPolicies.h:139
UE_FORCEINLINE_HINT SizeType DefaultCalculateSlackGrow(SizeType NewMax, SizeType CurrentMax, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT)
Definition ContainerAllocationPolicies.h:169
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition AnsiAllocator.h:31
bool HasAllocation() const
Definition AnsiAllocator.h:89
SizeType CalculateSlackShrink(SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement) const
Definition AnsiAllocator.h:75
SIZE_T GetAllocatedSize(SizeType CurrentMax, SIZE_T NumBytesPerElement) const
Definition AnsiAllocator.h:84
SizeType CalculateSlackGrow(SizeType NewMax, SizeType CurrentMax, SIZE_T NumBytesPerElement) const
Definition AnsiAllocator.h:79
SizeType GetInitialCapacity() const
Definition AnsiAllocator.h:94
FORCEINLINE void MoveToEmpty(ForAnyElementType &Other)
Definition AnsiAllocator.h:43
ForAnyElementType()
Definition AnsiAllocator.h:34
CORE_API void ResizeAllocation(SizeType CurrentNum, SizeType NewMax, SIZE_T NumBytesPerElement)
Definition AnsiAllocator.cpp:12
FORCEINLINE ~ForAnyElementType()
Definition AnsiAllocator.h:57
SizeType CalculateSlackReserve(SizeType NewMax, SIZE_T NumBytesPerElement) const
Definition AnsiAllocator.h:71
FORCEINLINE FScriptContainerElement * GetAllocation() const
Definition AnsiAllocator.h:66
Definition AnsiAllocator.h:109
FORCEINLINE ElementType * GetAllocation() const
Definition AnsiAllocator.h:116
ForElementType()
Definition AnsiAllocator.h:113
Definition AnsiAllocator.h:20
int32 SizeType
Definition AnsiAllocator.h:22
@ RequireRangeCheck
Definition AnsiAllocator.h:25
FAnsiAllocator ElementAllocator
Definition AnsiAllocator.h:27
FAnsiAllocator BitArrayAllocator
Definition AnsiAllocator.h:28
@ NeedsElementType
Definition AnsiAllocator.h:24
Definition AnsiAllocator.h:131
Definition ContainerAllocationPolicies.h:1662
implementation
Definition PlayInEditorLoadingScope.h:8
CORE_API void OnInvalidAnsiAllocatorNum(int32 NewNum, SIZE_T NumBytesPerElement)
Definition AnsiAllocator.cpp:6
Definition ContainerAllocationPolicies.h:242
Definition ContainerAllocationPolicies.h:247
@ IsZeroConstruct
Definition ContainerAllocationPolicies.h:248
Definition ContainerAllocationPolicies.h:256