![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CompactSetBase.h>
Public Types | |
| using | AllocatorType = Allocator |
| using | SizeType = typename AllocatorType::SizeType |
Public Member Functions | |
| bool | operator== (FIntrusiveUnsetOptionalState Tag) const |
| UE_FORCEINLINE_HINT bool | IsEmpty () const |
| UE_FORCEINLINE_HINT int32 | Num () const |
| UE_FORCEINLINE_HINT int32 | Max () const |
| UE_FORCEINLINE_HINT int32 | GetMaxIndex () const |
| UE_FORCEINLINE_HINT SIZE_T | GetAllocatedSize (const FCompactSetLayout Layout) const |
Protected Types | |
| using | HashCountType = uint32 |
| using | ElementAllocatorType = typename AllocatorType::template ForElementType< uint8 > |
Protected Member Functions | |
| UE_FORCEINLINE_HINT | TCompactSetBase ()=default |
| consteval | TCompactSetBase (EConstEval) |
| TCompactSetBase (FIntrusiveUnsetOptionalState Tag) | |
| UE_FORCEINLINE_HINT const HashCountType * | GetHashTableMemory (const FCompactSetLayout Layout) const |
| FCompactHashTableView | GetHashTableView (const FCompactSetLayout Layout) |
| FConstCompactHashTableView | GetConstHashTableView (const FCompactSetLayout Layout) const |
| int32 | AllocatorCalculateSlackGrow (int32 NewMaxElements, const FCompactSetLayout &Layout) const |
| void | ResizeAllocation (const int32 NewMaxElements, const FCompactSetLayout &Layout) |
| bool | ResizeAllocationPreserveData (const int32 NewMaxElements, const FCompactSetLayout &Layout, bool bPreserve=true) |
Static Protected Member Functions | |
| static UE_FORCEINLINE_HINT constexpr SizeType | GetHashCount (uint32 NumElements) |
| static UE_FORCEINLINE_HINT constexpr size_t | GetElementsSizeInBytes (uint32 NumElements, const FCompactSetLayout Layout) |
| static UE_FORCEINLINE_HINT constexpr size_t | GetTotalMemoryRequiredInBytes (uint32 NumElements, uint32 HashCount, const FCompactSetLayout Layout) |
| static UE_FORCEINLINE_HINT constexpr size_t | GetTotalMemoryRequiredInBytes (uint32 NumElements, const FCompactSetLayout Layout) |
| static constexpr SizeType | GetMaxElementsForAvailableSpace (size_t TotalBytes, uint32 HashCount, uint32 MinElementCount, const FCompactSetLayout Layout) |
Protected Attributes | |
| ElementAllocatorType | Elements |
| SizeType | NumElements = 0 |
| SizeType | MaxElements = 0 |
Static Protected Attributes | |
| static constexpr size_t | HashCountSize = sizeof(HashCountType) |
Base class for the compact set provides common functionality to manage the data using FCompactSetLayout to describe it
| using TCompactSetBase< Allocator >::AllocatorType = Allocator |
|
protected |
|
protected |
| using TCompactSetBase< Allocator >::SizeType = typename AllocatorType::SizeType |
|
protecteddefault |
|
inlineexplicitprotected |
|
inlineexplicitprotected |
|
inlineprotected |
|
inline |
Helper function to return the amount of memory allocated by this container Only returns the size of allocations made directly by the container, not the elements themselves.
|
inlineprotected |
|
inlinestaticconstexprprotected |
|
inlinestaticconstexprprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinestaticconstexprprotected |
|
inline |
Deprecated - unnecessary, keeping this here so TCompactSet can be swapped with TSet without changing code
|
inlinestaticconstexprprotected |
|
inlinestaticconstexprprotected |
|
inline |
Returns true if the sets is empty and contains no elements.
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
staticconstexprprotected |
|
protected |
|
protected |