载入中...
搜索中...
未找到
eve::definition::DefinitionHandle结构体 参考

A generation-qualified reference to one definition incarnation. 更多...

#include <DefinitionRuntime.h>

Public 成员函数

bool isValid () const noexcept
 Whether both the logical reference and generation are valid.
 

Public 属性

eve::DefinitionRef reference
 
eve::Generation generation
 

友元

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

详细描述

A generation-qualified reference to one definition incarnation.

The logical reference identifies the definition across reloads. The generation identifies the exact registry incarnation and therefore becomes stale after replacement or removal. This is not an ECS handle and does not keep the definition alive.

在文件 DefinitionRuntime.h 第 69 行定义.

成员函数说明

◆ isValid()

bool eve::definition::DefinitionHandle::isValid ( ) const
inlinenoexcept

Whether both the logical reference and generation are valid.

在文件 DefinitionRuntime.h 第 74 行定义.

引用了 generation, eve::DefinitionRef::id(), eve::LogicalId::isValid(), eve::detail::StrongUint64< Tag >::isZero() , 以及 reference.

友元及相关函数文档

◆ operator==

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

类成员变量说明

◆ generation

eve::Generation eve::definition::DefinitionHandle::generation

在文件 DefinitionRuntime.h 第 71 行定义.

被这些函数引用 isValid().

◆ reference

eve::DefinitionRef eve::definition::DefinitionHandle::reference

在文件 DefinitionRuntime.h 第 70 行定义.

被这些函数引用 isValid().


该结构体的文档由以下文件生成: