Staging area for one atomic rebuild of a named procedural system. 更多...
#include <ProcgenSystem.h>
Public 成员函数 | |
| ProcgenContext (std::string systemName, uint32_t seed, std::string buildKey={}, bool cacheHit=false) | |
| Procgen context. | |
| std::string | getName () const |
| Returns the name. | |
| uint32_t | getSeed () const |
| Returns the seed. | |
| uint32_t | seedFor (const std::string &scope) const |
| Seed for. | |
| bool | isActive () const |
| True when active. | |
| bool | hasFailed () const |
| True when failed. | |
| bool | isCacheHit () const |
| True when cache hit. | |
| std::string | getError () const |
| Returns the error. | |
| std::string | getBuildKey () const |
| Returns the build key. | |
| bool | publish (const std::string &outputName, PointSet *points) |
| Publish. | |
| bool | hasOutput (const std::string &outputName) const |
| True when output. | |
| int | getOutputCount () const |
| Returns the output count. | |
| std::string | getOutputName (int index) const |
| Returns the output name. | |
| PointSet * | getOutput (const std::string &outputName) const |
| Returns the output. | |
| bool | captureDebug (const std::string &stageName, PointSet *points) |
| Capture debug. | |
| int | getDebugStageCount () const |
| Returns the debug stage count. | |
| std::string | getDebugStageName (int index) const |
| Returns the debug stage name. | |
| PointSet * | getDebugStage (const std::string &stageName) const |
| Returns the debug stage. | |
| PointSet * | reuseStage (const std::string &stageName, const std::string &cacheKey) |
| Reuse stage. | |
| bool | cacheStage (const std::string &stageName, const std::string &cacheKey, PointSet *points) |
| Cache stage. | |
| int | getStageCacheHitCount () const |
| Returns the stage cache hit count. | |
| int | getStageCacheMissCount () const |
| Returns the stage cache miss count. | |
| void | trace (const std::string &stageName, int inputCount, int outputCount, float milliseconds) |
| Trace. | |
| bool | beginTrace (const std::string &stageName, int inputCount) |
| Start an automatically timed diagnostic stage. Timers may be nested. | |
| bool | endTrace (int outputCount) |
| Finish the most recently started timer and append its measured trace. | |
| int | getOpenTraceCount () const |
| Number of automatic timers that have not yet been finished. | |
| int | getTraceCount () const |
| Returns the trace count. | |
| std::string | getTraceName (int index) const |
| Returns the trace name. | |
| int | getTraceInputCount (int index) const |
| Returns the trace input count. | |
| int | getTraceOutputCount (int index) const |
| Returns the trace output count. | |
| float | getTraceMilliseconds (int index) const |
| Returns the trace milliseconds. | |
| void | fail (const std::string &error) |
| Fail. | |
| void | abort () |
| Aborts . | |
友元 | |
| class | Procgen |
详细描述
Staging area for one atomic rebuild of a named procedural system.
在文件 ProcgenSystem.h 第 34 行定义.
构造及析构函数说明
◆ ProcgenContext()
| eve::procgen::ProcgenContext::ProcgenContext | ( | std::string | systemName, |
| uint32_t | seed, | ||
| std::string | buildKey = {}, |
||
| bool | cacheHit = false |
||
| ) |
Procgen context.
在文件 ProcgenSystem.cpp 第 17 行定义.
成员函数说明
◆ abort()
| void eve::procgen::ProcgenContext::abort | ( | ) |
Aborts .
在文件 ProcgenSystem.cpp 第 184 行定义.
◆ beginTrace()
| bool eve::procgen::ProcgenContext::beginTrace | ( | const std::string & | stageName, |
| int | inputCount | ||
| ) |
Start an automatically timed diagnostic stage. Timers may be nested.
在文件 ProcgenSystem.cpp 第 131 行定义.
◆ cacheStage()
| bool eve::procgen::ProcgenContext::cacheStage | ( | const std::string & | stageName, |
| const std::string & | cacheKey, | ||
| PointSet * | points | ||
| ) |
◆ captureDebug()
| bool eve::procgen::ProcgenContext::captureDebug | ( | const std::string & | stageName, |
| PointSet * | points | ||
| ) |
◆ endTrace()
| bool eve::procgen::ProcgenContext::endTrace | ( | int | outputCount | ) |
Finish the most recently started timer and append its measured trace.
在文件 ProcgenSystem.cpp 第 144 行定义.
引用了 milliseconds.
◆ fail()
| void eve::procgen::ProcgenContext::fail | ( | const std::string & | error | ) |
◆ getBuildKey()
| std::string eve::procgen::ProcgenContext::getBuildKey | ( | ) | const |
Returns the build key.
在文件 ProcgenSystem.cpp 第 31 行定义.
◆ getDebugStage()
| PointSet * eve::procgen::ProcgenContext::getDebugStage | ( | const std::string & | stageName | ) | const |
◆ getDebugStageCount()
| int eve::procgen::ProcgenContext::getDebugStageCount | ( | ) | const |
Returns the debug stage count.
在文件 ProcgenSystem.cpp 第 84 行定义.
◆ getDebugStageName()
| std::string eve::procgen::ProcgenContext::getDebugStageName | ( | int | index | ) | const |
◆ getError()
| std::string eve::procgen::ProcgenContext::getError | ( | ) | const |
Returns the error.
在文件 ProcgenSystem.cpp 第 30 行定义.
◆ getName()
| std::string eve::procgen::ProcgenContext::getName | ( | ) | const |
Returns the name.
在文件 ProcgenSystem.cpp 第 24 行定义.
◆ getOpenTraceCount()
| int eve::procgen::ProcgenContext::getOpenTraceCount | ( | ) | const |
Number of automatic timers that have not yet been finished.
在文件 ProcgenSystem.cpp 第 160 行定义.
◆ getOutput()
| PointSet * eve::procgen::ProcgenContext::getOutput | ( | const std::string & | outputName | ) | const |
◆ getOutputCount()
| int eve::procgen::ProcgenContext::getOutputCount | ( | ) | const |
Returns the output count.
在文件 ProcgenSystem.cpp 第 55 行定义.
◆ getOutputName()
| std::string eve::procgen::ProcgenContext::getOutputName | ( | int | index | ) | const |
◆ getSeed()
| uint32_t eve::procgen::ProcgenContext::getSeed | ( | ) | const |
Returns the seed.
在文件 ProcgenSystem.cpp 第 25 行定义.
◆ getStageCacheHitCount()
| int eve::procgen::ProcgenContext::getStageCacheHitCount | ( | ) | const |
Returns the stage cache hit count.
在文件 ProcgenSystem.cpp 第 123 行定义.
◆ getStageCacheMissCount()
| int eve::procgen::ProcgenContext::getStageCacheMissCount | ( | ) | const |
Returns the stage cache miss count.
在文件 ProcgenSystem.cpp 第 124 行定义.
◆ getTraceCount()
| int eve::procgen::ProcgenContext::getTraceCount | ( | ) | const |
Returns the trace count.
在文件 ProcgenSystem.cpp 第 162 行定义.
◆ getTraceInputCount()
| int eve::procgen::ProcgenContext::getTraceInputCount | ( | int | index | ) | const |
◆ getTraceMilliseconds()
| float eve::procgen::ProcgenContext::getTraceMilliseconds | ( | int | index | ) | const |
◆ getTraceName()
| std::string eve::procgen::ProcgenContext::getTraceName | ( | int | index | ) | const |
◆ getTraceOutputCount()
| int eve::procgen::ProcgenContext::getTraceOutputCount | ( | int | index | ) | const |
◆ hasFailed()
| bool eve::procgen::ProcgenContext::hasFailed | ( | ) | const |
True when failed.
在文件 ProcgenSystem.cpp 第 28 行定义.
◆ hasOutput()
| bool eve::procgen::ProcgenContext::hasOutput | ( | const std::string & | outputName | ) | const |
True when output.
在文件 ProcgenSystem.cpp 第 51 行定义.
◆ isActive()
| bool eve::procgen::ProcgenContext::isActive | ( | ) | const |
True when active.
在文件 ProcgenSystem.cpp 第 27 行定义.
◆ isCacheHit()
| bool eve::procgen::ProcgenContext::isCacheHit | ( | ) | const |
True when cache hit.
在文件 ProcgenSystem.cpp 第 29 行定义.
◆ publish()
| bool eve::procgen::ProcgenContext::publish | ( | const std::string & | outputName, |
| PointSet * | points | ||
| ) |
◆ reuseStage()
| PointSet * eve::procgen::ProcgenContext::reuseStage | ( | const std::string & | stageName, |
| const std::string & | cacheKey | ||
| ) |
◆ seedFor()
| uint32_t eve::procgen::ProcgenContext::seedFor | ( | const std::string & | scope | ) | const |
◆ trace()
| void eve::procgen::ProcgenContext::trace | ( | const std::string & | stageName, |
| int | inputCount, | ||
| int | outputCount, | ||
| float | milliseconds | ||
| ) |
友元及相关函数文档
◆ Procgen
|
friend |
在文件 ProcgenSystem.h 第 110 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/ProcgenSystem.h
- src/modules/procgen/ProcgenSystem.cpp