FDatasmithUniqueNameProviderBase

Based on a table of frequently used names, this class generates unique names with a good complexity when the number of name is important.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

DatasmithCore

Header

/Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithUtils.h

Include

#include "DatasmithUtils.h"

Syntax

class FDatasmithUniqueNameProviderBase

Remarks

Based on a table of frequently used names, this class generates unique names with a good complexity when the number of name is important.

: This abstact class allows various implementation of the cache of known name. Implementation could use a simple TSet, or reuse existing specific cache structure

Destructors

Functions

Name Description

Public function

void

 

AddExistingName

(
    const FString& Name
)

Register a name as known

Protected function

bool

 

Contains

(
    const FString& Name
)

Check if the given name is already registered

Public function

FString

 

GenerateUniqueName

(
    const FString& BaseName
)

Generates a unique name

Public function

void

 

RemoveExistingName

(
    const FString& Name
)

Remove a name from the list of existing name

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