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

#include <ContainerAllocationPolicies.h>

Public Types

typedef TFixedSparseArrayAllocator< NumInlineElementsSparseArrayAllocator
 
typedef TFixedAllocator< NumInlineHashBucketsHashAllocator
 

Static Public Member Functions

static FORCEINLINE uint32 GetNumberOfHashBuckets (uint32 NumHashedElements)
 

Private Types

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

Detailed Description

template<uint32 NumInlineElements, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
class TFixedSetAllocator< NumInlineElements, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >

An inline set allocator that doesn't have any secondary storage.

Definition at line 1194 of file ContainerAllocationPolicies.h.

Member Typedef Documentation

◆ HashAllocator

template<uint32 NumInlineElements, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
typedef TFixedAllocator<NumInlineHashBuckets> TFixedSetAllocator< NumInlineElements, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::HashAllocator

Definition at line 1222 of file ContainerAllocationPolicies.h.

◆ SparseArrayAllocator

template<uint32 NumInlineElements, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
typedef TFixedSparseArrayAllocator<NumInlineElements> TFixedSetAllocator< NumInlineElements, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::SparseArrayAllocator

Definition at line 1221 of file ContainerAllocationPolicies.h.

Member Enumeration Documentation

◆ anonymous enum

template<uint32 NumInlineElements, 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 1198 of file ContainerAllocationPolicies.h.

Member Function Documentation

◆ GetNumberOfHashBuckets()

template<uint32 NumInlineElements, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
static FORCEINLINE uint32 TFixedSetAllocator< NumInlineElements, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::GetNumberOfHashBuckets ( uint32 NumHashedElements)
inlinestatic

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

Definition at line 1205 of file ContainerAllocationPolicies.h.


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