Immutable measurement extension; filtering, aggregation and scoring belong to the executor. @ownership Definitions and compiled plans share ownership because either may outlive the other. @thread Called synchronously on the provider's simulation thread; never retain borrowed arguments. @reentrancy No locks are held. A metric must not mutate the queried world or this instance. 更多...
#include <EnvironmentQuery.h>
Public 成员函数 | |
| virtual | ~IEnvironmentMetric ()=default |
| Releases a measurement implementation. | |
| virtual EnvironmentMetricContract | contract () const noexcept=0 |
| Declares supported space and optimization guarantees. | |
| virtual Result< double > | measure (const EnvironmentItem &item, const TargetLocation &reference, const EnvironmentServices &services) const =0 |
| Returns one finite raw measurement, or a structured backend failure. | |
详细描述
Immutable measurement extension; filtering, aggregation and scoring belong to the executor. @ownership Definitions and compiled plans share ownership because either may outlive the other. @thread Called synchronously on the provider's simulation thread; never retain borrowed arguments. @reentrancy No locks are held. A metric must not mutate the queried world or this instance.
在文件 EnvironmentQuery.h 第 77 行定义.
构造及析构函数说明
◆ ~IEnvironmentMetric()
|
virtualdefault |
Releases a measurement implementation.
成员函数说明
◆ contract()
|
pure virtualnoexcept |
Declares supported space and optimization guarantees.
◆ measure()
|
pure virtual |
Returns one finite raw measurement, or a structured backend failure.
该类的文档由以下文件生成:
- src/modules/sensing/EnvironmentQuery.h