载入中...
搜索中...
未找到
eve::action::ActionNotifyPlayback类 参考

Owner-thread notify playback host. 更多...

#include <ActionNotifyPlayback.h>

Public 成员函数

 ActionNotifyPlayback (ActionNotifyRegistry registry)
 Take ownership of an already-configured registry.
 
 ActionNotifyPlayback (const ActionNotifyPlayback &)=delete
 
ActionNotifyPlayback & operator= (const ActionNotifyPlayback &)=delete
 
 ActionNotifyPlayback (ActionNotifyPlayback &&)=delete
 
ActionNotifyPlayback & operator= (ActionNotifyPlayback &&)=delete
 
ActionNotifyRegistry & registry () noexcept
 Mutable registry for installing provider handlers.
 
const ActionNotifyRegistry & registry () const noexcept
 Borrowed registry for authoring/descriptor queries.
 
Result< void > apply (const ActionAdvance &advance, ActionNotifyContext context)
 Deliver boundaries and active updates from one ActionRuntime advance.
 
Result< void > interrupt (ActionNotifyContext context)
 Emit paired exits for one interrupted execution.
 
Result< void > sample (const std::vector< ActionActiveBlock > &blocks, ActionNotifyContext context) const
 Side-effect-free preview sample path.
 
std::size_t executionCount () const noexcept
 Number of execution projections retained for interruption cleanup.
 

静态 Public 成员函数

static Result< std::unique_ptr< ActionNotifyPlayback > > withBuiltins ()
 Build heap-owned playback with the engine's standard notify descriptors/handlers.
 

详细描述

Owner-thread notify playback host.

Owns the descriptor/handler registry and the per-execution block lifecycle router. ActionRuntime remains the sole phase/timeline sampling authority; hosts call apply with each ActionAdvance they already produced.

Not movable: ActionBlockRuntime borrows the owned registry by reference. Prefer withBuiltins() / heap ownership when the value must cross a factory.

@ownership Unique; must outlive every borrowed ActionNotifyContext reference passed into apply/interrupt/sample for the duration of those calls. @thread Owner/main thread only; handler callbacks are synchronous.

在文件 ActionNotifyPlayback.h 第 34 行定义.

构造及析构函数说明

◆ ActionNotifyPlayback() [1/3]

eve::action::ActionNotifyPlayback::ActionNotifyPlayback ( ActionNotifyRegistry  registry)
explicit

Take ownership of an already-configured registry.

参数
registryOwning registry moved into this playback.

在文件 ActionNotifyPlayback.cpp 第 12 行定义.

◆ ActionNotifyPlayback() [2/3]

eve::action::ActionNotifyPlayback::ActionNotifyPlayback ( const ActionNotifyPlayback &  )
delete

◆ ActionNotifyPlayback() [3/3]

eve::action::ActionNotifyPlayback::ActionNotifyPlayback ( ActionNotifyPlayback &&  )
delete

成员函数说明

◆ apply()

Result< void > eve::action::ActionNotifyPlayback::apply ( const ActionAdvance &  advance,
ActionNotifyContext  context 
)

Deliver boundaries and active updates from one ActionRuntime advance.

参见
ActionBlockRuntime::apply

在文件 ActionNotifyPlayback.cpp 第 14 行定义.

引用了 eve::action::ActionBlockRuntime::apply() , 以及 context.

◆ executionCount()

std::size_t eve::action::ActionNotifyPlayback::executionCount ( ) const
inlinenoexcept

Number of execution projections retained for interruption cleanup.

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

◆ interrupt()

Result< void > eve::action::ActionNotifyPlayback::interrupt ( ActionNotifyContext  context)

Emit paired exits for one interrupted execution.

参见
ActionBlockRuntime::interrupt

在文件 ActionNotifyPlayback.cpp 第 18 行定义.

引用了 context , 以及 eve::action::ActionBlockRuntime::interrupt().

◆ operator=() [1/2]

ActionNotifyPlayback & eve::action::ActionNotifyPlayback::operator= ( ActionNotifyPlayback &&  )
delete

◆ operator=() [2/2]

ActionNotifyPlayback & eve::action::ActionNotifyPlayback::operator= ( const ActionNotifyPlayback &  )
delete

◆ registry() [1/2]

const ActionNotifyRegistry & eve::action::ActionNotifyPlayback::registry ( ) const
inlinenoexcept

Borrowed registry for authoring/descriptor queries.

在文件 ActionNotifyPlayback.h 第 53 行定义.

◆ registry() [2/2]

ActionNotifyRegistry & eve::action::ActionNotifyPlayback::registry ( )
inlinenoexcept

Mutable registry for installing provider handlers.

在文件 ActionNotifyPlayback.h 第 51 行定义.

被这些函数引用 withBuiltins().

◆ sample()

Result< void > eve::action::ActionNotifyPlayback::sample ( const std::vector< ActionActiveBlock > &  blocks,
ActionNotifyContext  context 
) const

Side-effect-free preview sample path.

参见
ActionBlockRuntime::sample

在文件 ActionNotifyPlayback.cpp 第 22 行定义.

引用了 context , 以及 eve::action::ActionBlockRuntime::sample().

◆ withBuiltins()

Result< std::unique_ptr< ActionNotifyPlayback > > eve::action::ActionNotifyPlayback::withBuiltins ( )
static

Build heap-owned playback with the engine's standard notify descriptors/handlers.

在文件 ActionNotifyPlayback.cpp 第 5 行定义.

引用了 registry() , 以及 eve::action::ActionNotifyRegistry::withBuiltins().


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