UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FHashBuilder Class Reference

#include <HashBuilder.h>

Public Member Functions

 FHashBuilder (uint32 InHash=0)
 
FHashBuilderAppendRaw (const void *Data, int64 Num)
 
template<typename T >
UE_FORCEINLINE_HINT TEnableIf< TIsPODType< T >::Value, FHashBuilder & >::Type AppendRaw (const T &InData)
 
template<typename T >
FHashBuilderAppend (const T &InData)
 
template<typename T >
FHashBuilderAppend (const TArray< T > &InArray)
 
template<typename T >
FHashBuilderAppend (const TSet< T > &InSet)
 
template<typename T , typename U >
FHashBuilderAppend (const TMap< T, U > &InMap)
 
template<typename T >
UE_FORCEINLINE_HINT FHashBuilderoperator<< (const T &InData)
 
UE_FORCEINLINE_HINT uint32 GetHash () const
 

Detailed Description

Class for computing a hash of multiple types, going through GetTypeHash when the type implements it, and fallbacks to raw data hashing when the type doesn't.

Note: this hash builder should be used for transient hashes, as some types implements run-dependent hash computations, such as GetTypeHash(FName).

Constructor & Destructor Documentation

◆ FHashBuilder()

FHashBuilder::FHashBuilder ( uint32  InHash = 0)
inlineexplicit

Member Function Documentation

◆ Append() [1/4]

template<typename T >
FHashBuilder & FHashBuilder::Append ( const T &  InData)
inline

◆ Append() [2/4]

template<typename T >
FHashBuilder & FHashBuilder::Append ( const TArray< T > &  InArray)
inline

◆ Append() [3/4]

template<typename T , typename U >
FHashBuilder & FHashBuilder::Append ( const TMap< T, U > &  InMap)
inline

◆ Append() [4/4]

template<typename T >
FHashBuilder & FHashBuilder::Append ( const TSet< T > &  InSet)
inline

◆ AppendRaw() [1/2]

template<typename T >
UE_FORCEINLINE_HINT TEnableIf< TIsPODType< T >::Value, FHashBuilder & >::Type FHashBuilder::AppendRaw ( const T &  InData)
inline

◆ AppendRaw() [2/2]

FHashBuilder & FHashBuilder::AppendRaw ( const void Data,
int64  Num 
)
inline

◆ GetHash()

UE_FORCEINLINE_HINT uint32 FHashBuilder::GetHash ( ) const
inline

◆ operator<<()

template<typename T >
UE_FORCEINLINE_HINT FHashBuilder & FHashBuilder::operator<< ( const T &  InData)
inline

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