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]
|
explicit |
Take ownership of an already-configured registry.
- 参数
-
registry Owning registry moved into this playback.
在文件 ActionNotifyPlayback.cpp 第 12 行定义.
◆ ActionNotifyPlayback() [2/3]
|
delete |
◆ ActionNotifyPlayback() [3/3]
|
delete |
成员函数说明
◆ apply()
| Result< void > eve::action::ActionNotifyPlayback::apply | ( | const ActionAdvance & | advance, |
| ActionNotifyContext | context | ||
| ) |
Deliver boundaries and active updates from one ActionRuntime advance.
在文件 ActionNotifyPlayback.cpp 第 14 行定义.
◆ executionCount()
|
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.
在文件 ActionNotifyPlayback.cpp 第 18 行定义.
引用了 context , 以及 eve::action::ActionBlockRuntime::interrupt().
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
delete |
◆ registry() [1/2]
|
inlinenoexcept |
Borrowed registry for authoring/descriptor queries.
在文件 ActionNotifyPlayback.h 第 53 行定义.
◆ registry() [2/2]
|
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.
在文件 ActionNotifyPlayback.cpp 第 22 行定义.
◆ withBuiltins()
|
static |
Build heap-owned playback with the engine's standard notify descriptors/handlers.
在文件 ActionNotifyPlayback.cpp 第 5 行定义.
引用了 registry() , 以及 eve::action::ActionNotifyRegistry::withBuiltins().
该类的文档由以下文件生成:
- src/modules/action/ActionNotifyPlayback.h
- src/modules/action/ActionNotifyPlayback.cpp