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 |
详细描述
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()
|
inlineconstexprnoexcept |
Returns whether both the handle and its registry epoch are set.
在文件 RuntimeRegistry.h 第 96 行定义.
引用了 eve::script::RuntimeHandleRef< Tag >::handle , 以及 eve::script::RuntimeHandleRef< Tag >::ownerEpoch.
被这些函数引用 eve::authority::Authority::isStale(), eve::statepatch::StateBatchHandleRef::isValid() , 以及 eve::climbing::ClimbingState::releaseRuntime().
◆ packed()
|
inlineconstexprnoexcept |
Returns the packed slot/generation projection.
在文件 RuntimeRegistry.h 第 98 行定义.
友元及相关函数文档
◆ operator==
|
friend |
类成员变量说明
◆ handle
| RuntimeHandle<Tag> eve::script::RuntimeHandleRef< Tag >::handle = RuntimeHandle<Tag>::invalid() |
◆ ownerEpoch
| std::uint64_t eve::script::RuntimeHandleRef< Tag >::ownerEpoch = 0 |
该结构体的文档由以下文件生成:
- src/engine/common/RuntimeRegistry.h