Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
ContainerAllocationPolicies.h File Reference
+ Include dependency graph for ContainerAllocationPolicies.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FScriptContainerElement
 
struct  TAllocatorTraitsBase< AllocatorType >
 
struct  TAllocatorTraits< AllocatorType >
 
class  FContainerAllocatorInterface
 
class  FContainerAllocatorInterface::ForElementType< ElementType >
 
class  TAlignedHeapAllocator< Alignment >
 
class  TAlignedHeapAllocator< Alignment >::ForAnyElementType
 
class  TAlignedHeapAllocator< Alignment >::ForElementType< ElementType >
 
struct  TAllocatorTraits< TAlignedHeapAllocator< Alignment > >
 
class  FHeapAllocator
 
class  FHeapAllocator::ForAnyElementType
 
class  FHeapAllocator::ForElementType< ElementType >
 
struct  TAllocatorTraits< FHeapAllocator >
 
class  TInlineAllocator< NumInlineElements, SecondaryAllocator >
 
class  TInlineAllocator< NumInlineElements, SecondaryAllocator >::ForElementType< ElementType >
 
struct  TAllocatorTraits< TInlineAllocator< NumInlineElements, SecondaryAllocator > >
 
class  TFixedAllocator< NumInlineElements >
 
class  TFixedAllocator< NumInlineElements >::ForElementType< ElementType >
 
struct  TAllocatorTraits< TFixedAllocator< NumInlineElements > >
 
class  TSparseArrayAllocator< InElementAllocator, InBitArrayAllocator >
 
class  TInlineSparseArrayAllocator< NumInlineElements, SecondaryAllocator >
 
class  TSetAllocator< InSparseArrayAllocator, InHashAllocator, AverageNumberOfElementsPerHashBucket, BaseNumberOfHashBuckets, MinNumberOfHashedElements >
 
class  TInlineSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >
 
class  FDefaultAllocator
 
class  FDefaultSetAllocator
 
class  FDefaultBitArrayAllocator
 
class  FDefaultSparseArrayAllocator
 
struct  TAllocatorTraits< FDefaultAllocator >
 
struct  TAllocatorTraits< FDefaultSetAllocator >
 
struct  TAllocatorTraits< FDefaultBitArrayAllocator >
 
struct  TAllocatorTraits< FDefaultSparseArrayAllocator >
 

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)
 

Macro Definition Documentation

◆ DEFAULT_BASE_NUMBER_OF_HASH_BUCKETS

#define DEFAULT_BASE_NUMBER_OF_HASH_BUCKETS   8

Definition at line 716 of file ContainerAllocationPolicies.h.

◆ DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS

#define DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS   4

Definition at line 717 of file ContainerAllocationPolicies.h.

◆ DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET

#define DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET   2

Definition at line 715 of file ContainerAllocationPolicies.h.

◆ NumBitsPerDWORD

#define NumBitsPerDWORD   ((int32)32)

Definition at line 673 of file ContainerAllocationPolicies.h.

◆ NumBitsPerDWORDLogTwo

#define NumBitsPerDWORDLogTwo   ((int32)5)

Definition at line 674 of file ContainerAllocationPolicies.h.

Function Documentation

◆ DefaultCalculateSlackGrow()

FORCEINLINE int32 DefaultCalculateSlackGrow ( int32 NumElements,
int32 NumAllocatedElements,
SIZE_T BytesPerElement,
bool bAllowQuantize,
uint32 Alignment = DEFAULT_ALIGNMENT )

Definition at line 57 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DefaultCalculateSlackReserve()

FORCEINLINE int32 DefaultCalculateSlackReserve ( int32 NumElements,
SIZE_T BytesPerElement,
bool bAllowQuantize,
uint32 Alignment = DEFAULT_ALIGNMENT )

Definition at line 85 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DefaultCalculateSlackShrink()

FORCEINLINE int32 DefaultCalculateSlackShrink ( int32 NumElements,
int32 NumAllocatedElements,
SIZE_T BytesPerElement,
bool bAllowQuantize,
uint32 Alignment = DEFAULT_ALIGNMENT )

Definition at line 28 of file ContainerAllocationPolicies.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IfAThenAElseB()

template<typename ReferencedType >
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.

Returns
If the first parameter provided is non-nullptr, it is returned; otherwise the second parameter is returned.

Definition at line 26 of file UnrealTemplate.h.

◆ IfPThenAElseB()

template<typename PredicateType , typename ReferencedType >
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.