Ark Server API (ASE) - Wiki
|
#include "../BasicTypes.h"
#include "../HAL/UnrealMemory.h"
#include "../Templates/TypeCompatibleBytes.h"
#include "../GenericPlatform/GenericPlatformMath.h"
#include "../Templates/MemoryOps.h"
Go to the source code of this file.
Macros | |
#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 |
Functions | |
template<typename ReferencedType > | |
ReferencedType * | IfAThenAElseB (ReferencedType *A, ReferencedType *B) |
template<typename PredicateType , typename ReferencedType > | |
ReferencedType * | IfPThenAElseB (PredicateType Predicate, ReferencedType *A, ReferencedType *B) |
FORCEINLINE int32 | DefaultCalculateSlackShrink (int32 NumElements, int32 NumAllocatedElements, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT) |
FORCEINLINE int32 | DefaultCalculateSlackGrow (int32 NumElements, int32 NumAllocatedElements, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT) |
FORCEINLINE int32 | DefaultCalculateSlackReserve (int32 NumElements, SIZE_T BytesPerElement, bool bAllowQuantize, uint32 Alignment=DEFAULT_ALIGNMENT) |
#define DEFAULT_BASE_NUMBER_OF_HASH_BUCKETS 8 |
Definition at line 716 of file ContainerAllocationPolicies.h.
#define DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS 4 |
Definition at line 717 of file ContainerAllocationPolicies.h.
#define DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET 2 |
Definition at line 715 of file ContainerAllocationPolicies.h.
#define NumBitsPerDWORD ((int32)32) |
Definition at line 673 of file ContainerAllocationPolicies.h.
#define NumBitsPerDWORDLogTwo ((int32)5) |
Definition at line 674 of file ContainerAllocationPolicies.h.
FORCEINLINE int32 DefaultCalculateSlackGrow | ( | int32 | NumElements, |
int32 | NumAllocatedElements, | ||
SIZE_T | BytesPerElement, | ||
bool | bAllowQuantize, | ||
uint32 | Alignment = DEFAULT_ALIGNMENT ) |
Definition at line 57 of file ContainerAllocationPolicies.h.
FORCEINLINE int32 DefaultCalculateSlackReserve | ( | int32 | NumElements, |
SIZE_T | BytesPerElement, | ||
bool | bAllowQuantize, | ||
uint32 | Alignment = DEFAULT_ALIGNMENT ) |
Definition at line 85 of file ContainerAllocationPolicies.h.
FORCEINLINE int32 DefaultCalculateSlackShrink | ( | int32 | NumElements, |
int32 | NumAllocatedElements, | ||
SIZE_T | BytesPerElement, | ||
bool | bAllowQuantize, | ||
uint32 | Alignment = DEFAULT_ALIGNMENT ) |
Definition at line 28 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 26 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 41 of file UnrealTemplate.h.