Based on a table of frequently used names, this class generates unique names with a good complexity when the number of name is important.
More...
#include <DatasmithUtils.h>
|
| virtual bool | Contains (const FString &Name)=0 |
| | Check if the given name is already registered. More...
|
| |
Based on a table of frequently used names, this class generates unique names with a good complexity when the number of name is important.
- Note
- : This abstact class allows various implementation of the cache of known name. Implementation could use a simple TSet, or reuse existing specific cache structure
◆ AddExistingName()
| virtual void FDatasmithUniqueNameProviderBase::AddExistingName |
( |
const FString & |
Name | ) |
|
|
pure virtual |
◆ Contains()
| virtual bool FDatasmithUniqueNameProviderBase::Contains |
( |
const FString & |
Name | ) |
|
|
protectedpure virtual |
Check if the given name is already registered.
- Parameters
-
- Returns
- true if the name is in the cache
Implemented in FDatasmithUniqueNameProvider.
◆ GenerateUniqueName()
| FString FDatasmithUniqueNameProviderBase::GenerateUniqueName |
( |
const FString & |
BaseName | ) |
|
Generates a unique name.
- Parameters
-
| BaseName | Name that will be suffixed with an index to be unique |
- Returns
- FString unique name. Calling "Contains()" with this name will be false
◆ RemoveExistingName()
| virtual void FDatasmithUniqueNameProviderBase::RemoveExistingName |
( |
const FString & |
Name | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: