FHashTable

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/HashTable.h

Include

#include "Containers/HashTable.h"

Syntax

class FHashTable

Variables

Name Description

Protected variable

uint32 *

 

Hash

Protected variable

uint16

 

HashMask

Protected variable

uint32

 

HashSize

Protected variable

uint32

 

IndexSize

Protected variable

uint32 *

 

NextIndex

Constructors

Name Description

Public function

FHashTable

(
    const FHashTable& Other
)

Public function

FHashTable

(
    uint32 InHashSize,
    uint32 InIndexSize
)

Destructors

Name Description

Public function

~FHashTable()

Functions

Name Description

Public function

void

 

Add

(
    uint16 Key,
    uint32 Index
)

Public function Const

float

 

AverageSearch()

Average # of compares per search.

Public function

void

 

Clear()

Public function Const

bool

 

Contains

(
    uint16 Key
)

Public function Const

uint32

 

First

(
    uint16 Key
)

Functions used to search.

Public function

void

 

Free()

Public function

void

 

Initialize

(
    uint32 InHashSize,
    uint32 InIndexSize
)

Public function Const

bool

 

IsValid

(
    uint32 Index
)

Public function Const

uint32

 

Next

(
    uint32 Index
)

Next in hash chain.

Public function

void

 

Remove

(
    uint16 Key,
    uint32 Index
)

Public function

void

 

Resize

(
    uint32 NewIndexSize
)

Constants

Name

Description

EmptyHash

Avoids allocating hash until first add.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss