载入中...
搜索中...
未找到
eve::script::RuntimeHandleRef< Tag > 模板结构体 参考

Handle plus owner-lifetime epoch for a non-ECS registry object. 更多...

#include <RuntimeRegistry.h>

Public 成员函数

constexpr bool isValid () const noexcept
 Returns whether both the handle and its registry epoch are set.
 
constexpr std::uint64_t packed () const noexcept
 Returns the packed slot/generation projection.
 

Public 属性

RuntimeHandle< Tag > handle = RuntimeHandle<Tag>::invalid()
 
std::uint64_t ownerEpoch = 0
 

友元

constexpr bool operator== (const RuntimeHandleRef &, const RuntimeHandleRef &) noexcept=default
 

详细描述

template<class Tag>
struct eve::script::RuntimeHandleRef< Tag >

Handle plus owner-lifetime epoch for a non-ECS registry object.

The embedded RuntimeHandle supplies slot/generation stale detection. The epoch additionally prevents a handle from an unloaded module instance from accidentally resolving against a newly-created module instance whose slot numbers happen to restart at the same values.

RuntimeHandleRef public API.

在文件 RuntimeRegistry.h 第 91 行定义.

成员函数说明

◆ isValid()

template<class Tag >
constexpr bool eve::script::RuntimeHandleRef< Tag >::isValid ( ) const
inlineconstexprnoexcept

◆ packed()

template<class Tag >
constexpr std::uint64_t eve::script::RuntimeHandleRef< Tag >::packed ( ) const
inlineconstexprnoexcept

Returns the packed slot/generation projection.

在文件 RuntimeRegistry.h 第 98 行定义.

引用了 eve::script::RuntimeHandleRef< Tag >::handle.

被这些函数引用 eve::statepatch::StateBatchHandleRef::packed().

友元及相关函数文档

◆ operator==

template<class Tag >
constexpr bool operator== ( const RuntimeHandleRef< Tag > &  ,
const RuntimeHandleRef< Tag > &   
)
friend

类成员变量说明

◆ handle

◆ ownerEpoch


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