![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <DatasmithUtils.h>
Inheritance diagram for FDatasmithUniqueNameProviderBase:Public Member Functions | |
| FDatasmithUniqueNameProviderBase ()=default | |
| UE_API | FDatasmithUniqueNameProviderBase (const FDatasmithUniqueNameProviderBase &Other) |
| UE_API | FDatasmithUniqueNameProviderBase (FDatasmithUniqueNameProviderBase &&Other) |
| virtual | ~FDatasmithUniqueNameProviderBase ()=default |
| UE_API FDatasmithUniqueNameProviderBase * | operator= (const FDatasmithUniqueNameProviderBase &Other) |
| UE_API FDatasmithUniqueNameProviderBase * | operator= (FDatasmithUniqueNameProviderBase &&Other) |
| UE_API FString | GenerateUniqueName (const FString &BaseName, int32 CharBudget=INT32_MAX) |
| virtual void | AddExistingName (const FString &Name)=0 |
| virtual void | RemoveExistingName (const FString &Name)=0 |
| virtual UE_API void | Clear () |
Protected Member Functions | |
| virtual bool | Contains (const FString &Name)=0 |
Based on a table of frequently used names, this class generates unique names with a good complexity when the number of name is important.
|
default |
| FDatasmithUniqueNameProviderBase::FDatasmithUniqueNameProviderBase | ( | const FDatasmithUniqueNameProviderBase & | Other | ) |
| FDatasmithUniqueNameProviderBase::FDatasmithUniqueNameProviderBase | ( | FDatasmithUniqueNameProviderBase && | Other | ) |
|
virtualdefault |
Register a name as known
| Name | name to register |
Implemented in FDatasmithUniqueNameProvider.
|
virtual |
Flushes all known names
Reimplemented in FDatasmithUniqueNameProvider.
|
protectedpure virtual |
Check if the given name is already registered
| Name | name to test |
Implemented in FDatasmithUniqueNameProvider.
| FString FDatasmithUniqueNameProviderBase::GenerateUniqueName | ( | const FString & | BaseName, |
| int32 | CharBudget = INT32_MAX |
||
| ) |
Generates a unique name
| BaseName | Name that will be suffixed with an index to be unique |
| CharBudget | Max character allowed in the name. |
| FDatasmithUniqueNameProviderBase * FDatasmithUniqueNameProviderBase::operator= | ( | const FDatasmithUniqueNameProviderBase & | Other | ) |
| FDatasmithUniqueNameProviderBase * FDatasmithUniqueNameProviderBase::operator= | ( | FDatasmithUniqueNameProviderBase && | Other | ) |
|
pure virtual |
Remove a name from the list of existing name
| Name | name to unregister |
Implemented in FDatasmithUniqueNameProvider.