载入中...
搜索中...
未找到
eve::map::NavigationGridSnapshot类 参考

Immutable owning capture; independent of Pathfinder and TileLayer lifetimes. 更多...

#include <Pathfinder.h>

类

struct  Data
 

Public 成员函数

 NavigationGridSnapshot ()=default
 Construct an absent snapshot.
 
bool valid () const noexcept
 Whether this value contains captured data.
 
int width () const noexcept
 Read column count.
 
int height () const noexcept
 Read row count.
 
std::uint64_t revision () const noexcept
 Read content revision, advanced only on changed captured content.
 
NavigationTopology topology () const noexcept
 Read captured adjacency.
 
bool isStaggerAxisY () const noexcept
 Read hex stagger axis (normalized to Y for orthogonal captures).
 
bool isStaggerOdd () const noexcept
 Read hex stagger parity (normalized to odd for orthogonal captures).
 
std::span< const float > costs () const noexcept
 Borrow costs while at least one snapshot retains this capture; reassignment releases it.
 
std::span< const std::uint8_t > enterMasks () const noexcept
 Borrow directional enter masks with the same snapshot lifetime.
 
std::span< const std::uint8_t > exitMasks () const noexcept
 Borrow directional exit masks with the same snapshot lifetime.
 

友元

class Pathfinder
 

详细描述

Immutable owning capture; independent of Pathfinder and TileLayer lifetimes.

在文件 Pathfinder.h 第 27 行定义.

构造及析构函数说明

◆ NavigationGridSnapshot()

eve::map::NavigationGridSnapshot::NavigationGridSnapshot ( )
default

Construct an absent snapshot.

成员函数说明

◆ costs()

std::span< const float > eve::map::NavigationGridSnapshot::costs ( ) const
noexcept

Borrow costs while at least one snapshot retains this capture; reassignment releases it.

在文件 Pathfinder.cpp 第 363 行定义.

◆ enterMasks()

std::span< const std::uint8_t > eve::map::NavigationGridSnapshot::enterMasks ( ) const
noexcept

Borrow directional enter masks with the same snapshot lifetime.

在文件 Pathfinder.cpp 第 366 行定义.

◆ exitMasks()

std::span< const std::uint8_t > eve::map::NavigationGridSnapshot::exitMasks ( ) const
noexcept

Borrow directional exit masks with the same snapshot lifetime.

在文件 Pathfinder.cpp 第 369 行定义.

◆ height()

int eve::map::NavigationGridSnapshot::height ( ) const
noexcept

Read row count.

在文件 Pathfinder.cpp 第 356 行定义.

◆ isStaggerAxisY()

bool eve::map::NavigationGridSnapshot::isStaggerAxisY ( ) const
noexcept

Read hex stagger axis (normalized to Y for orthogonal captures).

在文件 Pathfinder.cpp 第 361 行定义.

◆ isStaggerOdd()

bool eve::map::NavigationGridSnapshot::isStaggerOdd ( ) const
noexcept

Read hex stagger parity (normalized to odd for orthogonal captures).

在文件 Pathfinder.cpp 第 362 行定义.

◆ revision()

std::uint64_t eve::map::NavigationGridSnapshot::revision ( ) const
noexcept

Read content revision, advanced only on changed captured content.

在文件 Pathfinder.cpp 第 357 行定义.

◆ topology()

NavigationTopology eve::map::NavigationGridSnapshot::topology ( ) const
noexcept

Read captured adjacency.

在文件 Pathfinder.cpp 第 358 行定义.

引用了 eve::map::Ortho4.

◆ valid()

bool eve::map::NavigationGridSnapshot::valid ( ) const
inlinenoexcept

Whether this value contains captured data.

在文件 Pathfinder.h 第 36 行定义.

◆ width()

int eve::map::NavigationGridSnapshot::width ( ) const
noexcept

Read column count.

在文件 Pathfinder.cpp 第 355 行定义.

友元及相关函数文档

◆ Pathfinder

friend class Pathfinder
friend

在文件 Pathfinder.h 第 28 行定义.


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