Navigation
API > API/Runtime > API/Runtime/DatasmithCore
- 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
| Name | FDatasmithUniqueNameProviderBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Datasmith/DatasmithCore/Public/DatasmithUtils.h |
| Include Path | #include "DatasmithUtils.h" |
Syntax
class FDatasmithUniqueNameProviderBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| DatasmithUtils.h | |||
FDatasmithUniqueNameProviderBase
(
const FDatasmithUniqueNameProviderBase& Other |
DatasmithUtils.h | ||
| DatasmithUtils.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FDatasmithUniqueNameProviderBase() |
DatasmithUtils.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CriticalSection | FCriticalSection | DatasmithUtils.h | ||
| FrequentlyUsedNames | TMap< FString, int32 > | DatasmithUtils.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddExistingName
(
const FString& Name |
Register a name as known | DatasmithUtils.h | |
virtual void Clear() |
Flushes all known names | DatasmithUtils.h | |
FString GenerateUniqueName
(
const FString& BaseName, |
Generates a unique name | DatasmithUtils.h | |
void RemoveExistingName
(
const FString& Name |
Remove a name from the list of existing name | DatasmithUtils.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Contains
(
const FString& Name |
Check if the given name is already registered | DatasmithUtils.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDatasmithUniqueNameProviderBase * operator=
(
const FDatasmithUniqueNameProviderBase& Other |
DatasmithUtils.h | ||
| DatasmithUtils.h |