Script factory for independent sensing worlds. 更多...
#include <Sensing.h>
Public 成员函数 | |
| Module_REG (Sensing) | |
| Sensing () | |
| Registers the read-only sensing capability for automation hosts. | |
| ~Sensing () override | |
| Sensing. | |
| int | worldCount () const override |
| Number of live sensing worlds created by the project. | |
| std::vector< eve::SensingWorldQuery > | lastQueries () const override |
| Last completed query of every live world, in slot order. | |
Public 成员函数 继承自 eve::Module | |
| virtual | ~Module () |
| Module. | |
| virtual std::string | getName () const =0 |
| Returns the name. | |
Public 成员函数 继承自 eve::ISensingQuery | |
| virtual | ~ISensingQuery ()=default |
| I sensing query. | |
静态 Public 成员函数 | |
| static eve::Result< SensingWorldHandleRef > | newWorld () |
| Script factory for independent sensing worlds. | |
| static eve::script::Borrowed< SensingWorld > | resolve (SensingWorldHandleRef reference) noexcept |
| Resolves a live sensing world as a non-owning observation. | |
| static eve::Result< void > | release (SensingWorldHandleRef reference) |
| Releases a module-owned sensing world and invalidates its handle. | |
| static bool | isStale (SensingWorldHandleRef reference) noexcept |
| Reports whether a world reference is stale. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::ISensingQuery | |
| static constexpr const char * | capabilityName = "ISensingQuery" |
详细描述
构造及析构函数说明
◆ Sensing()
| eve::sensing::Sensing::Sensing | ( | ) |
Registers the read-only sensing capability for automation hosts.
在文件 Sensing.cpp 第 626 行定义.
◆ ~Sensing()
|
override |
在文件 Sensing.cpp 第 628 行定义.
成员函数说明
◆ isStale()
|
staticnoexcept |
◆ lastQueries()
|
overridevirtual |
Last completed query of every live world, in slot order.
- 返回
- One entry per live world; empty when the project created none.
Last queries.
实现了 eve::ISensingQuery.
在文件 Sensing.cpp 第 636 行定义.
引用了 eve::SensingWorldQuery::index, index, eve::SensingWorldQuery::lastQueryJson , 以及 world.
◆ Module_REG()
| eve::sensing::Sensing::Module_REG | ( | Sensing | ) |
◆ newWorld()
|
static |
Script factory for independent sensing worlds.
- 返回
- A generation-qualified reference to a module-owned world. @ownership Sensing retains sole ownership; callers retain the reference and release it explicitly. @lifetime The reference becomes stale after release, module unload, or registry replacement. @thread Call on the Sensing module's owning thread. @reentrancy The factory invokes no callbacks.
在文件 Sensing.cpp 第 597 行定义.
◆ release()
|
static |
Releases a module-owned sensing world and invalidates its handle.
在文件 Sensing.cpp 第 606 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::StaleHandle.
被这些函数引用 eve::sensing::ScriptSensingWorld::~ScriptSensingWorld().
◆ resolve()
|
staticnoexcept |
Resolves a live sensing world as a non-owning observation.
在文件 Sensing.cpp 第 601 行定义.
◆ worldCount()
|
overridevirtual |
Number of live sensing worlds created by the project.
World count.
实现了 eve::ISensingQuery.
在文件 Sensing.cpp 第 630 行定义.
引用了 count.
该类的文档由以下文件生成:
- src/modules/sensing/Sensing.h
- src/modules/sensing/Sensing.cpp
Public 成员函数 继承自