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

#include <ContainerAllocationPolicies.h>

+ Inheritance diagram for TInlineSparseSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >:

Public Types

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

Static Public Member Functions

static UE_FORCEINLINE_HINT uint32 GetNumberOfHashBuckets (uint32 NumHashedElements)
 

Detailed Description

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

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

Member Typedef Documentation

◆ HashAllocator

template<uint32 NumInlineElements, typename SecondaryAllocator = TSparseSetAllocator<TSparseArrayAllocator<FDefaultAllocator,FDefaultAllocator>,FDefaultAllocator>, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
using TInlineSparseSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::HashAllocator = TInlineAllocator<NumInlineHashBuckets,typename SecondaryAllocator::HashAllocator>

◆ SparseArrayAllocator

template<uint32 NumInlineElements, typename SecondaryAllocator = TSparseSetAllocator<TSparseArrayAllocator<FDefaultAllocator,FDefaultAllocator>,FDefaultAllocator>, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
using TInlineSparseSetAllocator< NumInlineElements, SecondaryAllocator, AverageNumberOfElementsPerHashBucket, MinNumberOfHashedElements >::SparseArrayAllocator = TInlineSparseArrayAllocator<NumInlineElements,typename SecondaryAllocator::SparseArrayAllocator>

Member Function Documentation

◆ GetNumberOfHashBuckets()

template<uint32 NumInlineElements, typename SecondaryAllocator = TSparseSetAllocator<TSparseArrayAllocator<FDefaultAllocator,FDefaultAllocator>,FDefaultAllocator>, uint32 AverageNumberOfElementsPerHashBucket = DEFAULT_NUMBER_OF_ELEMENTS_PER_HASH_BUCKET, uint32 MinNumberOfHashedElements = DEFAULT_MIN_NUMBER_OF_HASHED_ELEMENTS>
static UE_FORCEINLINE_HINT uint32 TInlineSparseSetAllocator< NumInlineElements, SecondaryAllocator, 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: