载入中...
搜索中...
未找到

Strong reference to a named spatial zone. 更多...

#include <Targeting.h>

Public 成员函数

 ZoneRef ()=default
 Constructs an invalid zone reference.
 
bool isValid () const noexcept
 Returns whether the reference contains a valid logical ID.
 
const LogicalId & logicalId () const noexcept
 Returns the wrapped logical ID.
 

静态 Public 成员函数

static std::optional< ZoneRef > fromLogicalId (LogicalId id)
 Creates a zone reference from a valid logical ID.
 

友元

bool operator== (const ZoneRef &, const ZoneRef &) noexcept=default
 

详细描述

Strong reference to a named spatial zone.

ZoneRef names a logical zone; its shape and membership are supplied by a candidate provider. It is intentionally distinct from SubjectRef.

在文件 Targeting.h 第 84 行定义.

构造及析构函数说明

◆ ZoneRef()

eve::sensing::ZoneRef::ZoneRef ( )
default

Constructs an invalid zone reference.

被这些函数引用 fromLogicalId().

成员函数说明

◆ fromLogicalId()

std::optional< ZoneRef > eve::sensing::ZoneRef::fromLogicalId ( LogicalId  id)
static

Creates a zone reference from a valid logical ID.

参数
idScoped logical zone name.
返回
The reference, or empty when id is invalid.

在文件 Targeting.cpp 第 123 行定义.

引用了 isValid() , 以及 ZoneRef().

被这些函数引用 eve::sensing::SensingWorldCandidateProvider::query().

◆ isValid()

bool eve::sensing::ZoneRef::isValid ( ) const
inlinenoexcept

Returns whether the reference contains a valid logical ID.

在文件 Targeting.h 第 97 行定义.

被这些函数引用 fromLogicalId().

◆ logicalId()

const LogicalId & eve::sensing::ZoneRef::logicalId ( ) const
inlinenoexcept

Returns the wrapped logical ID.

在文件 Targeting.h 第 100 行定义.

友元及相关函数文档

◆ operator==

bool operator== ( const ZoneRef &  ,
const ZoneRef &   
)
friend

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