UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCoreRedirect Struct Reference

#include <CoreRedirects.h>

Public Member Functions

 FCoreRedirect (ECoreRedirectFlags InRedirectFlags, FString InOldName, FString InNewName)
 
 FCoreRedirect (ECoreRedirectFlags InRedirectFlags, const FCoreRedirectObjectName &InOldName, const FCoreRedirectObjectName &InNewName)
 
COREUOBJECT_API void NormalizeNewName ()
 
COREUOBJECT_API const TCHARParseValueChanges (const TCHAR *Buffer)
 
COREUOBJECT_API bool Matches (ECoreRedirectFlags InFlags, const FCoreRedirectObjectName &InName, ECoreRedirectMatchFlags MatchFlags=ECoreRedirectMatchFlags::None) const
 
COREUOBJECT_API bool Matches (const FCoreRedirectObjectName &InName, ECoreRedirectMatchFlags MatchFlags=ECoreRedirectMatchFlags::None) const
 
COREUOBJECT_API bool HasValueChanges () const
 
COREUOBJECT_API bool IsSubstringMatch () const
 
COREUOBJECT_API FCoreRedirectObjectName RedirectName (const FCoreRedirectObjectName &OldObjectName) const
 
COREUOBJECT_API bool IdenticalMatchRules (const FCoreRedirect &Other) const
 
FName GetSearchKey () const
 
COREUOBJECT_API void AppendHash (FBlake3 &Hasher) const
 
COREUOBJECT_API int Compare (const FCoreRedirect &Other) const
 

Public Attributes

ECoreRedirectFlags RedirectFlags
 
FCoreRedirectObjectName OldName
 
FCoreRedirectObjectName NewName
 
FCoreRedirectObjectName OverrideClassName
 
TMap< FString, FString > ValueChanges
 

Friends

struct FCoreRedirects
 
class FRedirectionSummary
 

Detailed Description

A single redirection from an old name to a new name, parsed out of an ini file

Constructor & Destructor Documentation

◆ FCoreRedirect() [1/2]

FCoreRedirect::FCoreRedirect ( ECoreRedirectFlags  InRedirectFlags,
FString  InOldName,
FString  InNewName 
)
inline

Construct from name strings, which may get parsed out

◆ FCoreRedirect() [2/2]

FCoreRedirect::FCoreRedirect ( ECoreRedirectFlags  InRedirectFlags,
const FCoreRedirectObjectName InOldName,
const FCoreRedirectObjectName InNewName 
)
inline

Construct parsed out object names

Member Function Documentation

◆ AppendHash()

void FCoreRedirect::AppendHash ( FBlake3 Hasher) const

Update Hasher with all fields from this

◆ Compare()

int FCoreRedirect::Compare ( const FCoreRedirect Other) const

Returns -,0,+ based on a full lexical-fnames compare of all fields on the two CoreRedirects.

◆ GetSearchKey()

FName FCoreRedirect::GetSearchKey ( ) const
inline

Returns the name used as the key into the acceleration map

◆ HasValueChanges()

bool FCoreRedirect::HasValueChanges ( ) const

Returns true if this has value redirects

◆ IdenticalMatchRules()

bool FCoreRedirect::IdenticalMatchRules ( const FCoreRedirect Other) const

See if search criteria is identical

◆ IsSubstringMatch()

bool FCoreRedirect::IsSubstringMatch ( ) const

Returns true if this is a substring match

◆ Matches() [1/2]

bool FCoreRedirect::Matches ( const FCoreRedirectObjectName InName,
ECoreRedirectMatchFlags  MatchFlags = ECoreRedirectMatchFlags::None 
) const

Returns true if the passed in name matches requirements

◆ Matches() [2/2]

bool FCoreRedirect::Matches ( ECoreRedirectFlags  InFlags,
const FCoreRedirectObjectName InName,
ECoreRedirectMatchFlags  MatchFlags = ECoreRedirectMatchFlags::None 
) const

Returns true if the passed in name and flags match requirements

◆ NormalizeNewName()

void FCoreRedirect::NormalizeNewName ( )

Normalizes NewName with data from OldName

◆ ParseValueChanges()

const TCHAR * FCoreRedirect::ParseValueChanges ( const TCHAR Buffer)

Parses a char buffer into the ValueChanges map

◆ RedirectName()

FCoreRedirectObjectName FCoreRedirect::RedirectName ( const FCoreRedirectObjectName OldObjectName) const

Convert to new names based on mapping

Friends And Related Symbol Documentation

◆ FCoreRedirects

◆ FRedirectionSummary

friend class FRedirectionSummary
friend

Member Data Documentation

◆ NewName

FCoreRedirectObjectName FCoreRedirect::NewName

Name to replace with

◆ OldName

FCoreRedirectObjectName FCoreRedirect::OldName

Name of object to look for

◆ OverrideClassName

FCoreRedirectObjectName FCoreRedirect::OverrideClassName

Change the class of this object when doing a redirect

◆ RedirectFlags

ECoreRedirectFlags FCoreRedirect::RedirectFlags

Flags of this redirect

◆ ValueChanges

TMap<FString, FString> FCoreRedirect::ValueChanges

Map of value changes, from old value to new value


The documentation for this struct was generated from the following files: