载入中...
搜索中...
未找到
eve::procgen::ProcgenContext类 参考

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 
)

Cache stage.

在文件 ProcgenSystem.cpp 第 106 行定义.

引用了 points.

◆ captureDebug()

bool eve::procgen::ProcgenContext::captureDebug ( const std::string &  stageName,
PointSet *  points 
)

Capture debug.

在文件 ProcgenSystem.cpp 第 66 行定义.

引用了 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)

Fail.

在文件 ProcgenSystem.cpp 第 180 行定义.

引用了 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

Returns the debug stage.

在文件 ProcgenSystem.cpp 第 90 行定义.

引用了 found.

◆ 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

Returns the debug stage name.

在文件 ProcgenSystem.cpp 第 86 行定义.

引用了 index.

◆ 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

Returns the output.

在文件 ProcgenSystem.cpp 第 61 行定义.

引用了 found.

◆ getOutputCount()

int eve::procgen::ProcgenContext::getOutputCount ( ) const

Returns the output count.

在文件 ProcgenSystem.cpp 第 55 行定义.

◆ getOutputName()

std::string eve::procgen::ProcgenContext::getOutputName ( int  index) const

Returns the output name.

在文件 ProcgenSystem.cpp 第 57 行定义.

引用了 index.

◆ 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

Returns the trace input count.

在文件 ProcgenSystem.cpp 第 168 行定义.

引用了 index.

◆ getTraceMilliseconds()

float eve::procgen::ProcgenContext::getTraceMilliseconds ( int  index) const

Returns the trace milliseconds.

在文件 ProcgenSystem.cpp 第 176 行定义.

引用了 index.

◆ getTraceName()

std::string eve::procgen::ProcgenContext::getTraceName ( int  index) const

Returns the trace name.

在文件 ProcgenSystem.cpp 第 164 行定义.

引用了 index.

◆ getTraceOutputCount()

int eve::procgen::ProcgenContext::getTraceOutputCount ( int  index) const

Returns the trace output count.

在文件 ProcgenSystem.cpp 第 172 行定义.

引用了 index.

◆ 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 
)

Publish.

在文件 ProcgenSystem.cpp 第 33 行定义.

引用了 points.

◆ reuseStage()

PointSet * eve::procgen::ProcgenContext::reuseStage ( const std::string &  stageName,
const std::string &  cacheKey 
)

Reuse stage.

在文件 ProcgenSystem.cpp 第 95 行定义.

引用了 found.

◆ seedFor()

uint32_t eve::procgen::ProcgenContext::seedFor ( const std::string &  scope) const

Seed for.

在文件 ProcgenSystem.cpp 第 26 行定义.

引用了 eve::procgen::deriveSeed() , 以及 scope.

◆ trace()

void eve::procgen::ProcgenContext::trace ( const std::string &  stageName,
int  inputCount,
int  outputCount,
float  milliseconds 
)

Trace.

在文件 ProcgenSystem.cpp 第 126 行定义.

引用了 milliseconds.

友元及相关函数文档

◆ Procgen

friend class Procgen
friend

在文件 ProcgenSystem.h 第 110 行定义.


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