Pure CPU sensing candidate provider with deterministic map-backed storage. 更多...
#include <Targeting.h>
Public 成员函数 | |
| SensingCandidateProvider ()=default | |
| Creates an empty provider; registration with capability is explicit. | |
| ~SensingCandidateProvider () override=default | |
| Sensing candidate provider. | |
| Result< void > | upsert (TargetCandidate candidate) |
| Adds or replaces one candidate using its SubjectRef as the key. | |
| Result< void > | remove (SubjectRef subject) |
| Removes one candidate; NotFound is returned when absent. | |
| std::size_t | size () const noexcept |
| Returns the number of stored candidate facts. | |
| Result< std::vector< TargetCandidate > > | query (const TargetingQuery &query) const override |
| Returns broad-phase candidates satisfying the coordinate and spatial constraints. | |
Public 成员函数 继承自 eve::sensing::ISensingCandidateProvider | |
| virtual | ~ISensingCandidateProvider ()=default |
| Releases ISensingCandidateProvider resources. | |
额外继承的成员函数 | |
静态 Public 属性 继承自 eve::sensing::ISensingCandidateProvider | |
| static constexpr const char * | capabilityName = "eve.sensing.ISensingCandidateProvider" |
详细描述
Pure CPU sensing candidate provider with deterministic map-backed storage.
It is useful as a minimal runtime provider and as a contract-test fixture. The implementation has no physics, scene, or UI dependency; a production provider may replace its linear scan with a spatial index.
在文件 Targeting.h 第 476 行定义.
构造及析构函数说明
◆ SensingCandidateProvider()
|
default |
Creates an empty provider; registration with capability is explicit.
◆ ~SensingCandidateProvider()
|
overridedefault |
Sensing candidate provider.
成员函数说明
◆ query()
|
overridevirtual |
Returns broad-phase candidates satisfying the coordinate and spatial constraints.
- 返回
- Owning candidates; no primary target is selected.
- 备注
- Synchronous and read-only. Thread affinity is provider-defined and must be documented by each implementation.
Queries .
实现了 eve::sensing::ISensingCandidateProvider.
在文件 Targeting.cpp 第 385 行定义.
被这些函数引用 query().
◆ remove()
| Result< void > eve::sensing::SensingCandidateProvider::remove | ( | SubjectRef | subject | ) |
Removes one candidate; NotFound is returned when absent.
在文件 Targeting.cpp 第 375 行定义.
引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::NotFound, subject, eve::Status::success() , 以及 eve::Result< T >::success().
◆ size()
|
inlinenoexcept |
Returns the number of stored candidate facts.
在文件 Targeting.h 第 488 行定义.
◆ upsert()
| Result< void > eve::sensing::SensingCandidateProvider::upsert | ( | TargetCandidate | candidate | ) |
Adds or replaces one candidate using its SubjectRef as the key.
在文件 Targeting.cpp 第 356 行定义.
引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::SubjectRef::format(), eve::InvalidArgument, eve::SubjectRef::isValid(), eve::sensing::TargetCandidate::location, eve::sensing::TargetCandidate::subject, eve::Status::success(), eve::Result< T >::success(), tag, eve::sensing::TargetCandidate::tags, value , 以及 eve::sensing::TargetCandidate::zones.
该类的文档由以下文件生成:
- src/modules/sensing/Targeting.h
- src/modules/sensing/Targeting.cpp
Public 成员函数 继承自