UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TFixedSparseSetAllocator< NumInlineElements, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements > Class Template Reference

#include <ContainerAllocationPolicies.h>

Public Types

using SparseArrayAllocator = TFixedSparseArrayAllocator< NumInlineElements >
 
using HashAllocator = TFixedAllocator< NumInlineHashBuckets >
 

Static Public Member Functions

static UE_FORCEINLINE_HINT uint32 GetNumberOfHashBuckets (uint32 NumHashedElements)
 

Detailed Description

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

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

Member Typedef Documentation

◆ HashAllocator

template<uint32 NumInlineElements, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
using TFixedSparseSetAllocator< NumInlineElements, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::HashAllocator = TFixedAllocator<NumInlineHashBuckets>

◆ SparseArrayAllocator

template<uint32 NumInlineElements, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
using TFixedSparseSetAllocator< NumInlineElements, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::SparseArrayAllocator = TFixedSparseArrayAllocator<NumInlineElements>

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 UE_FORCEINLINE_HINT uint32 TFixedSparseSetAllocator< NumInlineElements, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::GetNumberOfHashBuckets ( uint32  NumHashedElements)
inlinestatic

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


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