载入中...
搜索中...
未找到
eve::procgen::BuildKey类 参考
Stable key for deterministic-equivalent generation inputs. 更多...
#include <GeneratedArtifact.h>
Public 成员函数 | |
| BuildKey ()=default | |
| Construct an empty invalid build key. | |
| bool | empty () const noexcept |
| Return whether this key is non-empty. | |
| const std::string & | format () const noexcept |
| Return canonical key text. | |
静态 Public 成员函数 | |
| static std::optional< BuildKey > | fromCanonical (std::string_view canonical) |
| Construct a build key from canonical text. | |
| static std::optional< BuildKey > | forRecipe (std::string_view recipeId, const Params ¶ms) |
| Derive a compact deterministic key for a recipe and parameters. | |
友元 | |
| bool | operator== (const BuildKey &, const BuildKey &) noexcept=default |
详细描述
Stable key for deterministic-equivalent generation inputs.
在文件 GeneratedArtifact.h 第 46 行定义.
构造及析构函数说明
◆ BuildKey()
|
default |
Construct an empty invalid build key.
被这些函数引用 forRecipe() , 以及 fromCanonical().
成员函数说明
◆ empty()
|
inlinenoexcept |
Return whether this key is non-empty.
在文件 GeneratedArtifact.h 第 67 行定义.
◆ format()
|
inlinenoexcept |
Return canonical key text.
在文件 GeneratedArtifact.h 第 69 行定义.
◆ forRecipe()
|
static |
Derive a compact deterministic key for a recipe and parameters.
- 参数
-
recipeId Stable recipe identifier. params Generation parameters.
- 返回
- A key containing a versioned hash of canonical recipe inputs.
在文件 GeneratedArtifact.cpp 第 1192 行定义.
引用了 BuildKey(), params , 以及 value.
被这些函数引用 eve::procgen::generateMeshArtifact() , 以及 eve::procgen::generateRoadNetworkArtifact().
◆ fromCanonical()
|
static |
Construct a build key from canonical text.
- 参数
-
canonical Non-empty deterministic text; control characters are rejected.
- 返回
- The key, or empty for invalid input.
在文件 GeneratedArtifact.cpp 第 1187 行定义.
引用了 BuildKey().
友元及相关函数文档
◆ operator==
该类的文档由以下文件生成:
- src/modules/procgen/GeneratedArtifact.h
- src/modules/procgen/GeneratedArtifact.cpp