Ark Server API (ASA) - Wiki
|
#include "CoreTypes.h"
#include "Misc/AssertionMacros.h"
#include "HAL/UnrealMemory.h"
#include "Templates/TypeCompatibleBytes.h"
#include "HAL/PlatformMath.h"
#include "Templates/MemoryOps.h"
#include "Math/NumericLimits.h"
#include "Templates/IsPolymorphic.h"
Go to the source code of this file.
Macros | |
#define | CONTAINER_INITIAL_ALLOC_ZERO_SLACK 1 |
#define | NumBitsPerDWORD ((int32)32) |
#define | NumBitsPerDWORDLogTwo ((int32)5) |
#define | DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET 2 |
#define | DEFAULT_BASE_NUMBER_OF_HASH_BUCKETS 8 |
#define | DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS 4 |
Typedefs | |
using | FDefaultAllocator = TSizedDefaultAllocator<32> |
using | FHeapAllocator = TSizedHeapAllocator<32> |
template<uint32 NumInlineElements, typename SecondaryAllocator = FDefaultAllocator> | |
using | TInlineAllocator = TSizedInlineAllocator<NumInlineElements, 32, SecondaryAllocator> |
template<uint32 NumInlineElements, typename SecondaryAllocator = FDefaultAllocator64> | |
using | TInlineAllocator64 = TSizedInlineAllocator<NumInlineElements, 64, SecondaryAllocator> |
Functions | |
template<typename ReferencedType > | |
ReferencedType * | IfAThenAElseB (ReferencedType *A, ReferencedType *B) |
template<typename PredicateType , typename ReferencedType > | |
ReferencedType * | IfPThenAElseB (PredicateType Predicate, ReferencedType *A, ReferencedType *B) |
template<typename SizeType > | |
FORCEINLINE SizeType | DefaultCalculateSlackShrink (SizeType NumElements, SizeType NumAllocatedElements, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT) |
template<typename SizeType > | |
FORCEINLINE SizeType | DefaultCalculateSlackGrow (SizeType NumElements, SizeType NumAllocatedElements, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT) |
template<typename SizeType > | |
FORCEINLINE SizeType | DefaultCalculateSlackReserve (SizeType NumElements, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT) |
#define CONTAINER_INITIAL_ALLOC_ZERO_SLACK 1 |
Definition at line 18 of file ContainerAllocationPolicies.h.
#define DEFAULT_BASE_NUMBER_OF_HASH_BUCKETS 8 |
Definition at line 1104 of file ContainerAllocationPolicies.h.
#define DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS 4 |
Definition at line 1105 of file ContainerAllocationPolicies.h.
#define DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET 2 |
Definition at line 1102 of file ContainerAllocationPolicies.h.
#define NumBitsPerDWORD ((int32)32) |
Definition at line 1037 of file ContainerAllocationPolicies.h.
#define NumBitsPerDWORDLogTwo ((int32)5) |
Definition at line 1038 of file ContainerAllocationPolicies.h.
using FDefaultAllocator = TSizedDefaultAllocator<32> |
Definition at line 24 of file ContainerAllocationPolicies.h.
using FHeapAllocator = TSizedHeapAllocator<32> |
Definition at line 625 of file ContainerAllocationPolicies.h.
using TInlineAllocator = TSizedInlineAllocator<NumInlineElements, 32, SecondaryAllocator> |
Definition at line 783 of file ContainerAllocationPolicies.h.
using TInlineAllocator64 = TSizedInlineAllocator<NumInlineElements, 64, SecondaryAllocator> |
Definition at line 786 of file ContainerAllocationPolicies.h.
FORCEINLINE SizeType DefaultCalculateSlackGrow | ( | SizeType | NumElements, |
SizeType | NumAllocatedElements, | ||
SIZE_T | BytesPerElement, | ||
bool | bAllowQuantize, | ||
uint32 | Alignment = DEFAULT_ALIGNMENT ) |
Definition at line 69 of file ContainerAllocationPolicies.h.
FORCEINLINE SizeType DefaultCalculateSlackReserve | ( | SizeType | NumElements, |
SIZE_T | BytesPerElement, | ||
bool | bAllowQuantize, | ||
uint32 | Alignment = DEFAULT_ALIGNMENT ) |
Definition at line 122 of file ContainerAllocationPolicies.h.
FORCEINLINE SizeType DefaultCalculateSlackShrink | ( | SizeType | NumElements, |
SizeType | NumAllocatedElements, | ||
SIZE_T | BytesPerElement, | ||
bool | bAllowQuantize, | ||
uint32 | Alignment = DEFAULT_ALIGNMENT ) |
Definition at line 39 of file ContainerAllocationPolicies.h.
ReferencedType * IfAThenAElseB | ( | ReferencedType * | A, |
ReferencedType * | B ) |
branchless pointer selection return A ? A : B;
Chooses between the two parameters based on whether the first is nullptr or not.
Definition at line 28 of file UnrealTemplate.h.
ReferencedType * IfPThenAElseB | ( | PredicateType | Predicate, |
ReferencedType * | A, | ||
ReferencedType * | B ) |
branchless pointer selection based on predicate return PTRINT(Predicate) ? A : B;
Definition at line 37 of file UnrealTemplate.h.