Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
TInlineSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements > Class Template Reference

#include <ContainerAllocationPolicies.h>

Public Types

typedef TInlineSparseArrayAllocator< NumInlineElements, typename SecondaryAllocator::SparseArrayAllocator > SparseArrayAllocator
 
typedef TInlineAllocator< NumInlineHashBuckets, typename SecondaryAllocator::HashAllocator > HashAllocator
 

Static Public Member Functions

static FORCEINLINE uint32 GetNumberOfHashBuckets (uint32 NumHashedElements)
 

Private Types

enum  { NumInlineHashBuckets = (NumInlineElements + AverageNumberOfElementsPerHashBucket - 1) / AverageNumberOfElementsPerHashBucket }
 

Detailed Description

template<uint32 NumInlineElements, typename SecondaryAllocator = TSetAllocator<TSparseArrayAllocator<FDefaultAllocator,FDefaultAllocator>,FDefaultAllocator>, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
class TInlineSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >

An inline set allocator that allows sizing of the inline allocations for a set number of elements.

Definition at line 755 of file ContainerAllocationPolicies.h.

Member Typedef Documentation

◆ HashAllocator

template<uint32 NumInlineElements, typename SecondaryAllocator = TSetAllocator<TSparseArrayAllocator<FDefaultAllocator,FDefaultAllocator>,FDefaultAllocator>, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
typedef TInlineAllocator<NumInlineHashBuckets,typename SecondaryAllocator::HashAllocator> TInlineSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::HashAllocator

Definition at line 783 of file ContainerAllocationPolicies.h.

◆ SparseArrayAllocator

template<uint32 NumInlineElements, typename SecondaryAllocator = TSetAllocator<TSparseArrayAllocator<FDefaultAllocator,FDefaultAllocator>,FDefaultAllocator>, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
typedef TInlineSparseArrayAllocator<NumInlineElements,typename SecondaryAllocator::SparseArrayAllocator> TInlineSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::SparseArrayAllocator

Definition at line 782 of file ContainerAllocationPolicies.h.

Member Enumeration Documentation

◆ anonymous enum

template<uint32 NumInlineElements, typename SecondaryAllocator = TSetAllocator<TSparseArrayAllocator<FDefaultAllocator,FDefaultAllocator>,FDefaultAllocator>, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
anonymous enum
private
Enumerator
NumInlineHashBuckets 

Definition at line 759 of file ContainerAllocationPolicies.h.

Member Function Documentation

◆ GetNumberOfHashBuckets()

template<uint32 NumInlineElements, typename SecondaryAllocator = TSetAllocator<TSparseArrayAllocator<FDefaultAllocator,FDefaultAllocator>,FDefaultAllocator>, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
static FORCEINLINE uint32 TInlineSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::GetNumberOfHashBuckets ( uint32 NumHashedElements)
inlinestatic

Computes the number of hash buckets to use for a given number of elements.

Definition at line 766 of file ContainerAllocationPolicies.h.


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