engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | 所有成员列表
FDatasmithUniqueNameProviderBase类 参考abstract

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

#include <DatasmithUtils.h>

+ 类 FDatasmithUniqueNameProviderBase 继承关系图:

Public 成员函数

virtual void AddExistingName (const FString &Name)=0
 Register a name as known 更多...
 
FString GenerateUniqueName (const FString &BaseName)
 Generates a unique name 更多...
 
virtual void RemoveExistingName (const FString &Name)=0
 Remove a name from the list of existing name 更多...
 

Protected 成员函数

virtual bool Contains (const FString &Name)=0
 Check if the given name is already registered 更多...
 

详细描述

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

成员函数说明

◆ AddExistingName()

virtual void FDatasmithUniqueNameProviderBase::AddExistingName ( const FString &  Name)
pure virtual

Register a name as known

参数
Namename to register

在 FDatasmithUniqueNameProvider 内被实现.

◆ Contains()

virtual bool FDatasmithUniqueNameProviderBase::Contains ( const FString &  Name)
protectedpure virtual

Check if the given name is already registered

参数
Namename to test
返回
true if the name is in the cache

在 FDatasmithUniqueNameProvider 内被实现.

◆ GenerateUniqueName()

FString FDatasmithUniqueNameProviderBase::GenerateUniqueName ( const FString &  BaseName)

Generates a unique name

参数
BaseNameName that will be suffixed with an index to be unique
返回
FString unique name. Calling "Contains()" with this name will be false

◆ RemoveExistingName()

virtual void FDatasmithUniqueNameProviderBase::RemoveExistingName ( const FString &  Name)
pure virtual

Remove a name from the list of existing name

参数
Namename to unregister

在 FDatasmithUniqueNameProvider 内被实现.


该类的文档由以下文件生成: