Owning target result containing primary-independent subjects and optional geometry. 更多...
#include <Targeting.h>
Public 成员函数 | |
| Result< void > | addSubject (SubjectRef subject) |
| Adds a valid subject once; duplicate subjects are a NoOp success. | |
| Result< void > | setPrimary (SubjectRef subject) |
| Assigns an existing subject as primary without choosing one implicitly. | |
| Result< void > | setPoint (TargetLocation point) |
| Stores a point projection after preserving its coordinate tag. | |
| Result< void > | setArea (WorldArea area) |
| Stores an area projection after preserving its coordinate tag. | |
| Result< void > | setArea (GridArea area) |
| Stores a grid area projection after preserving its coordinate tag. | |
| std::span< const SubjectRef > | subjects () const noexcept |
| Returns borrowed subjects, valid until this TargetSet is mutated or destroyed. | |
| const std::optional< SubjectRef > & | primary () const noexcept |
| Returns the explicitly assigned primary subject, if any. | |
| const std::optional< TargetLocation > & | point () const noexcept |
| Returns the optional point projection. | |
| const std::optional< WorldArea > & | worldArea () const noexcept |
| Returns the optional world-area projection. | |
| const std::optional< GridArea > & | gridArea () const noexcept |
| Returns the optional grid-area projection. | |
详细描述
Owning target result containing primary-independent subjects and optional geometry.
在文件 Targeting.h 第 384 行定义.
成员函数说明
◆ addSubject()
| Result< void > eve::sensing::TargetSet::addSubject | ( | SubjectRef | subject | ) |
Adds a valid subject once; duplicate subjects are a NoOp success.
在文件 Targeting.cpp 第 290 行定义.
引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::NoOp, subject, eve::Status::success() , 以及 eve::Result< T >::success().
◆ gridArea()
|
inlinenoexcept |
Returns the optional grid-area projection.
在文件 Targeting.h 第 406 行定义.
◆ point()
|
inlinenoexcept |
◆ primary()
|
inlinenoexcept |
Returns the explicitly assigned primary subject, if any.
在文件 Targeting.h 第 400 行定义.
◆ setArea() [1/2]
Stores a grid area projection after preserving its coordinate tag.
在文件 Targeting.cpp 第 342 行定义.
引用了 eve::Applied, area, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Status::success() , 以及 eve::Result< T >::success().
◆ setArea() [2/2]
Stores an area projection after preserving its coordinate tag.
在文件 Targeting.cpp 第 328 行定义.
引用了 eve::Applied, area, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Status::success() , 以及 eve::Result< T >::success().
◆ setPoint()
| Result< void > eve::sensing::TargetSet::setPoint | ( | TargetLocation | point | ) |
Stores a point projection after preserving its coordinate tag.
在文件 Targeting.cpp 第 311 行定义.
引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, point(), eve::Status::success(), eve::Result< T >::success() , 以及 value.
◆ setPrimary()
| Result< void > eve::sensing::TargetSet::setPrimary | ( | SubjectRef | subject | ) |
Assigns an existing subject as primary without choosing one implicitly.
在文件 Targeting.cpp 第 300 行定义.
引用了 eve::Applied, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::NotFound, subject, eve::Status::success() , 以及 eve::Result< T >::success().
◆ subjects()
|
inlinenoexcept |
Returns borrowed subjects, valid until this TargetSet is mutated or destroyed.
在文件 Targeting.h 第 398 行定义.
◆ worldArea()
|
inlinenoexcept |
Returns the optional world-area projection.
在文件 Targeting.h 第 404 行定义.
该类的文档由以下文件生成:
- src/modules/sensing/Targeting.h
- src/modules/sensing/Targeting.cpp