Owning result of one deterministic reachability query. 更多...
#include <TacticsPath.h>
Public 成员函数 | |
| const std::vector< ReachableCell > & | cells () const noexcept |
| Return reachable cells in deterministic coordinate order. | |
| bool | contains (Cell cell) const noexcept |
| Return whether a cell is reachable within the queried budget. | |
| Result< int > | cost (Cell cell) const |
| Return the minimum cost for a reachable cell, or NotFound. | |
| Result< std::vector< Cell > > | pathTo (Cell target) const |
| Reconstruct an origin-to-target path, or NotFound. | |
友元 | |
| class | PathQuery |
详细描述
Owning result of one deterministic reachability query.
Results are ordered by Cell coordinates. They remain valid independently of subsequent board mutations, but represent only the board revision observed during the query and must be recomputed before a state-changing commit.
在文件 TacticsPath.h 第 30 行定义.
成员函数说明
◆ cells()
|
inlinenoexcept |
Return reachable cells in deterministic coordinate order.
在文件 TacticsPath.h 第 33 行定义.
◆ contains()
|
noexcept |
Return whether a cell is reachable within the queried budget.
在文件 TacticsPath.cpp 第 107 行定义.
被这些函数引用 pathTo().
◆ cost()
Return the minimum cost for a reachable cell, or NotFound.
在文件 TacticsPath.cpp 第 113 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, eve::NotFound, eve::Result< T >::success() , 以及 value.
◆ pathTo()
Reconstruct an origin-to-target path, or NotFound.
在文件 TacticsPath.cpp 第 122 行定义.
引用了 contains(), eve::Diagnostic::error(), found, eve::InvariantViolation, eve::NotFound , 以及 target.
友元及相关函数文档
◆ PathQuery
|
friend |
在文件 TacticsPath.h 第 42 行定义.
该类的文档由以下文件生成:
- src/modules/tactics/TacticsPath.h
- src/modules/tactics/TacticsPath.cpp