载入中...
搜索中...
未找到

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 &params)
 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()

eve::procgen::BuildKey::BuildKey ( )
default

Construct an empty invalid build key.

被这些函数引用 forRecipe() , 以及 fromCanonical().

成员函数说明

◆ empty()

bool eve::procgen::BuildKey::empty ( ) const
inlinenoexcept

Return whether this key is non-empty.

在文件 GeneratedArtifact.h 第 67 行定义.

◆ format()

const std::string & eve::procgen::BuildKey::format ( ) const
inlinenoexcept

Return canonical key text.

在文件 GeneratedArtifact.h 第 69 行定义.

◆ forRecipe()

std::optional< BuildKey > eve::procgen::BuildKey::forRecipe ( std::string_view  recipeId,
const Params &  params 
)
static

Derive a compact deterministic key for a recipe and parameters.

参数
recipeIdStable recipe identifier.
paramsGeneration parameters.
返回
A key containing a versioned hash of canonical recipe inputs.

在文件 GeneratedArtifact.cpp 第 1192 行定义.

引用了 BuildKey(), params , 以及 value.

被这些函数引用 eve::procgen::generateMeshArtifact() , 以及 eve::procgen::generateRoadNetworkArtifact().

◆ fromCanonical()

std::optional< BuildKey > eve::procgen::BuildKey::fromCanonical ( std::string_view  canonical)
static

Construct a build key from canonical text.

参数
canonicalNon-empty deterministic text; control characters are rejected.
返回
The key, or empty for invalid input.

在文件 GeneratedArtifact.cpp 第 1187 行定义.

引用了 BuildKey().

友元及相关函数文档

◆ operator==

bool operator== ( const BuildKey &  ,
const BuildKey &   
)
friend

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