Navigation
API > API/Runtime > API/Runtime/DatasmithCore
Inheritance Hierarchy
- FDatasmithUniqueNameProviderBase
- FDatasmithUniqueNameProvider
- FDatasmithActorUniqueLabelProvider
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
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDatasmithUniqueNameProviderBase
(
const FDatasmithUniqueNameProviderBase& Other |
|||
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddExistingName
(
const FString& Name |
Register a name as known | |
| void | Clear () |
Flushes all known names | |
| bool | Check if the given name is already registered | ||
| FString | GenerateUniqueName
(
const FString& BaseName, |
Generates a unique name | |
| void | RemoveExistingName
(
const FString& Name |
Remove a name from the list of existing name |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FDatasmithUniqueNameProviderBase * | operator=
(
const FDatasmithUniqueNameProviderBase& Other |
||
| FDatasmithUniqueNameProviderBase * | operator=
(
FDatasmithUniqueNameProviderBase&& Other |