载入中...
搜索中...
未找到
eve::tactics::Reachability类 参考

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()

const std::vector< ReachableCell > & eve::tactics::Reachability::cells ( ) const
inlinenoexcept

Return reachable cells in deterministic coordinate order.

在文件 TacticsPath.h 第 33 行定义.

◆ contains()

bool eve::tactics::Reachability::contains ( Cell  cell) const
noexcept

Return whether a cell is reachable within the queried budget.

在文件 TacticsPath.cpp 第 107 行定义.

引用了 found , 以及 value.

被这些函数引用 pathTo().

◆ cost()

Result< int > eve::tactics::Reachability::cost ( Cell  cell) const

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()

Result< std::vector< Cell > > eve::tactics::Reachability::pathTo ( Cell  target) const

Reconstruct an origin-to-target path, or NotFound.

在文件 TacticsPath.cpp 第 122 行定义.

引用了 contains(), eve::Diagnostic::error(), found, eve::InvariantViolation, eve::NotFound , 以及 target.

友元及相关函数文档

◆ PathQuery

friend class PathQuery
friend

在文件 TacticsPath.h 第 42 行定义.


该类的文档由以下文件生成: