载入中...
搜索中...
未找到
eve::dev::PlayTraceBuffer类 参考final

Process-owned append buffer for trace=append. 更多...

#include <PlayTrace.h>

Public 成员函数

void clear ()
 Clears .
 
bool isReplaying () const
 True while replayPlayTrace is executing.
 
void setReplaying (bool value)
 
void begin (std::string contractId, std::string contractHash, std::int64_t seed, std::string startCheckpoint)
 Begins .
 
void append (const Value &request, const Value &response, std::uint64_t hostFrame)
 Append.
 
bool isRecording () const
 True when recording.
 
bool empty () const
 Empty.
 
Value exportTrace () const
 Export trace.
 

静态 Public 成员函数

static PlayTraceBuffer & instance ()
 Instance.
 

详细描述

Process-owned append buffer for trace=append.

Does not own game state. Replay sets a replaying flag so nested Play requests do not record. Main-thread affinity; no callbacks.

在文件 PlayTrace.h 第 58 行定义.

成员函数说明

◆ append()

void eve::dev::PlayTraceBuffer::append ( const Value &  request,
const Value &  response,
std::uint64_t  hostFrame 
)

Append.

在文件 PlayTrace.cpp 第 177 行定义.

引用了 begin, digest, eve::Value::getIf(), name, object, path, eve::dev::playObservationDigest(), request, state , 以及 step.

◆ begin()

void eve::dev::PlayTraceBuffer::begin ( std::string  contractId,
std::string  contractHash,
std::int64_t  seed,
std::string  startCheckpoint 
)

Begins .

在文件 PlayTrace.cpp 第 167 行定义.

引用了 clear() , 以及 seed.

◆ clear()

void eve::dev::PlayTraceBuffer::clear ( )

Clears .

在文件 PlayTrace.cpp 第 157 行定义.

被这些函数引用 begin().

◆ empty()

bool eve::dev::PlayTraceBuffer::empty ( ) const
inline

Empty.

在文件 PlayTrace.h 第 76 行定义.

◆ exportTrace()

Value eve::dev::PlayTraceBuffer::exportTrace ( ) const

Export trace.

在文件 PlayTrace.cpp 第 203 行定义.

◆ instance()

PlayTraceBuffer & eve::dev::PlayTraceBuffer::instance ( )
static

Instance.

在文件 PlayTrace.cpp 第 152 行定义.

引用了 buffer.

被这些函数引用 eve::dev::PlayReplayGuard::PlayReplayGuard() , 以及 eve::dev::PlayReplayGuard::~PlayReplayGuard().

◆ isRecording()

bool eve::dev::PlayTraceBuffer::isRecording ( ) const
inline

True when recording.

在文件 PlayTrace.h 第 74 行定义.

◆ isReplaying()

bool eve::dev::PlayTraceBuffer::isReplaying ( ) const
inline

True while replayPlayTrace is executing.

在文件 PlayTrace.h 第 66 行定义.

◆ setReplaying()

void eve::dev::PlayTraceBuffer::setReplaying ( bool  value)
inline

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

引用了 value.

被这些函数引用 eve::dev::PlayReplayGuard::PlayReplayGuard() , 以及 eve::dev::PlayReplayGuard::~PlayReplayGuard().


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